Access has been blocked by CORS policy
Issue description
The issue appears in browser-based (HTML5) builds of the application. When user sign up, log in or other request to Xsolla Login is performed, the following error message is displayed:
Copy
Access to XMLHttpRequest at '{request}' from origin '{your domain}' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the request resource.
Fix
Add the URLs that are allowed to call the API methods from the browser. To do it:
- Open your project in Publisher Account.
- In the side menu, click Login.
- Click Configure in the pane of a Login project.
- Select the Callback URLs section.
- In the Allowed origins (CORS) field, add the URLs that will be allowed to call the API methods from the browser.
- Click Save changes.
Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Rate this page
Rate this page
Don’t want to answer
Thank you for your feedback!
Found a typo or other text error? Select the text and press Ctrl+Enter.