Friday, February 28, 2020

centOS CORS on Apache


cpanel, top right corner, click setting, make sure show hidden files.


go to The folder you wish CORS, in our case, it is /data/ 

add .htaccess file

add one line at   .htaccess  file.

done
 Header set Access-Control-Allow-Origin "*"