Steps to enable CORS in your website


Staff member
CORS stands for cross-origin request in which we request for the particular resources like images or fonts from outside of the website. You can manage your website resources like images, fonts etc by using CORS.

CORS on Linux server

You can use below code to enable cross-domain scripting (CORS) on limux server. You have to add this code in your .htaccess file.

<ifModule mod_headers.c>
Header set Access-Control-Allow-Origin: *
CORS on Windows server

On windows server you have to add below code in your web.config file to enable CORS on server.

<add name="Access-Control-Allow-Origin" value="*" />