dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.38k stars 9.99k forks source link

We are having trouble with both `0.0.0.0` and `0.0.0.1` with [Stripe Elements UI](https://docs.stripe.com/payments/payment-element) for collecting payment card details. #58415

Open javiercn opened 1 week ago

javiercn commented 1 week ago
          We are having trouble with both `0.0.0.0` and `0.0.0.1` with [Stripe Elements UI](https://docs.stripe.com/payments/payment-element) for collecting payment card details.
  1. Stripe Elements UI's JavaScript does not allow being hosted on IP-based hostnames
  2. Stripe backend does not allow redirecting to IP-based hostnames, to return to the app after adding payment card

Another usecase is locking down google maps API keys to specific domains, we were not able to make this work with 0.0.0.0. I'm sure there are many similar situations with other JavaScript libraries.

We really need this to be configurable to localhost 🙏

Originally posted by @angularsen in https://github.com/dotnet/maui/issues/24884#issuecomment-2410966903

javiercn commented 1 week ago

This came from the PR where we changed the host for Maui apps. We might need to reconsider what we do here, and offer some level of customization if needed. Otherwise we risk breaking people in 9.0.

MarkusRodler commented 21 hours ago

@javiercn Plus there are issues with SVG Icons as described in the original issue: https://github.com/dotnet/maui/issues/24363