Report this

What is the reason for this report?

my spaces cors policity but receive browser error randomly

Posted on July 25, 2019

Event though my cors policy is 100% open i receive browser restriction denial error from time to time. This is not consistent less then 1%, but still will not be able to deploy this way. Please advice.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hello,

Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.

Occasional CORS errors might be due to network glitches, browser extensions, or intermittent server issues.

To debug this, I recommend the following steps:

  1. Check logs: Verify your server logs for any relevant error messages or failed requests.
  2. Test with different browsers: Try replicating the error on various browsers and devices to narrow down potential issues.
  3. Review server-side configuration: Ensure that your server is consistently applying CORS headers to the responses.

For further understanding and troubleshooting CORS, please refer to DigitalOcean’s tutorial on Implementing CORS in Node.js with Express and TypeScript.

Hope that this helps!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.