Error: 'Access-Control-Allow-Origin'

Modified on: Mon, 3 Aug, 2020 at 11:38 AM

This article also covers 

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. 





  1. Client-Side error

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.

  1. Server-side error

Contact support. We control response headers and we could help you resolve this issue.










Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.
×