Eilon / MauiHybridWebView

MIT License
206 stars 45 forks source link

0.0.0.0 referer causing issues #56

Open cmydur opened 6 months ago

cmydur commented 6 months ago

I'm trying to integrate Stripe payment elements using HTML and Javascript and enable apple pay and google pay. However Stripe requires us to register domain. Can we update the referer from 0.0.0. to mycomain.com

Eilon commented 6 months ago

This is not currently supported, as you've found out. If the hostname/URL was configurable, would that solve the problem with the payment processor? Do they just check the referer or do they need to be able to access any content at the URL? (We've had similar requests for BlazorWebView as well, and I think it's generally reasonable, but I also want to make sure that it would actually solve the problem people are experiencing.)

cmydur commented 6 months ago

That is my theory/assumption so far. Stripe looks at where the request is coming from and I have verified my domain with them. If I host my page at my domain it works and it does when the page is served from WebView and only thing I could think of is referer