CORS errors when trying to integrate Stripe via HTML Widget #2612
BoEsse
started this conversation in
Feature request
Replies: 2 comments
-
Thank you for reporting that. We are going to investigate that, and decide if we're going to change the custom html widget behavior. |
Beta Was this translation helpful? Give feedback.
0 replies
-
@BoEsse, it seems that the CORS headers need to be set on the API you're calling, no matter if it's called from IFrame or regular page. I see that you already employ a Function App, therefore, if you control it, you could proxy Stripe API with this application and set |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Bug description
We are trying to integrate Stripe into the protal via an HTML Widget. But when we use even a simple demo from Stripe, we get CORS Access-Control-Allow-Origin errors. Further investigation has shown, that we can not set CORS properly via the portal. Should that be possible or is it just not possible and we are missing something here?
Reproduction steps
Expected behavior
The ability to set the cross origin behaviour for HTML Widgets, maybe.
Is your portal managed or self-hosted?
Managed /
Self-hostedRelease tag or commit SHA (if using self-hosted version)
Latest version on Azure
API Management service name
Environment
Additional context
Just for clarification: This is not about the endpoint or any of that. We can't even hit the endpoint, since there is no way in DevPortal to configure the CORS for a HTML Widget, and since they are loaded as IFrames (!!) there isn't really anything we can do.
This is the slightly modified example code in the HTML Widget
Beta Was this translation helpful? Give feedback.
All reactions