Docs
Access, api, browser, ChargeBee, check, error, in, integadmin, key, out, publish, server, set, up, built, client, side, CORS, header, origin, load, JS
Error: 'Access-Control-Allow-Origin'
If you observe the 'Access-Control-Allow-Origin' error in your browser console it could be due to 2
35484171
2020-08-03T05:58:20Z
2020-08-03T06:08:44Z
2659
0
7
247325
Error: 'Access-Control-Allow-Origin'
We are using Chargebee built-in checkout and found an error related to origin-access control blocked. How to resolve this error?
We are consistently seeing an 'Access-Control-Allow-Origin' error when we load the Chargebee JS API
I am facing issues with CORS setup
Summary
If you observe the 'Access-Control-Allow-Origin' error in your browser console it could be due to 2 reasons. A client-side error related to CORS or a server-side error as a result of the headers.
Note: These errors are harmless and will not affect your billing/checkout flow in any way.
Full access API key(s) leads to a CORS error. You can use the publishable keys to resolve this issue. Here's more on the different types of API keys in Chargebee.
Refer to this document on CORS repositories to get more insights on the error that you are facing.
Contact support. We control response headers and we could help you resolve this issue.