When making a http request to "https://example.com/api" - the console throws an error
Refused to connect to...because it violates the following Content Security Policy directive: "connect-src http://localhost:*...
How can I resolve this error?
When making a http request to "https://example.com/api" - the console throws an error
Refused to connect to...because it violates the following Content Security Policy directive: "connect-src http://localhost:*...
How can I resolve this error?
Copyright © 2021 Jogjafile Inc.
To make 3rd party API requests in your UI extension you mus specify the endpoints to be allowlisted in your
"content_security_policy": { "connect-src": [] }
You can use the Stripe CLI to grant the URL permission:For full reference, see the Stripe Apps docs.