CORS on a website hosted on Linux Environment
You can add the below line in your .htaccess file where cross-domain scripting is required.
Header set Access-Control-Allow-Origin: *
CORS on a website hosted on Windows Environment
For Windows hosting accounts, create or modify the web.config file in the directory where you want to permit CORS requests. Add the following lines to the web.config file:
To enable CORS on the windows website, you can just add the below lines.
<add name="Access-Control-Allow-Origin" value="*" />