How to enable CORS in your hosting account Print this Article
If you are a developer and need CORS enabled to run your app you can enable it adding the following lines in the .htaccess file in your hosting account.
Header set Access-Control-Allow-Origin "*"
Other option is also enable the headers in your script if you are using PHP, for example:
header("Access-Control-Allow-Headers: Authorization, Content-Type");
header('content-type: application/json; charset=utf-8');
Was this answer helpful?
By default the encoding is latin1 but you could try to workaround your code. To change the...
If you made no changes in your account or oscommerce script and this happened suddenly then there...
This option is available in all our shared cPanel hosting accounts.Please note if your script is...
You could try changing it sending the headers in your php code, i.e.: header('Vary:...
You can add the following line in your .htaccess file: AddHandler server-parsed .html or...