Cloudkul Support

What is CORS Error ?

Sometimes when we visit a webpage we get CORS error. CORS stands for Cross Origin Resource Sharing. This type of error occurs when we try to fetch contents from different domain. It also happens when you are running a ssl enabled site and try to fetch the contents from unsecure site.
To resolve this problem, you have to add a header on your request. If you are using nginx you can add the header in nginx configuration file.

add_header Access-Control-Allow-Origin "*"

Here “*” means fetch content from any source. You can replace “*” with any IP or domain

Is this article is helpful?

People like and 1 people dislike.

If result is not found or irrelevant, Please contact us.

Submit your request