You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running the example we’re getting the following CORS error in the browser:
Access to fetch at 'https://www.sandbox.paypal.com/graphql?GetGooglePayConfig' from origin 'http://localhost:8888' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
The issue occurs during the paypal.Googlepay().config() call and prevents the button from loading.
I verified via curl that there is no Access-Control-Allow-Origin header on this endpoint:
@eyyazubi we resolved it by using a non-local domain + TLS cert. In our case ngrok was the easiest method since we're already using it to test other services that require non-local domains over HTTPS (e.g. federated auth). However, depending on your dev env there are several other non-commercial options available.
When running the example we’re getting the following CORS error in the browser:
The issue occurs during the
paypal.Googlepay().config()
call and prevents the button from loading.I verified via curl that there is no Access-Control-Allow-Origin header on this endpoint:
Is there maybe something I'm missing or is it possible the endpoint is not working properly?
The text was updated successfully, but these errors were encountered: