How enable CORS on Apache in WHM
Hi
I want to add the CORS authorization .. I read this document but I don'e kwno how to implement it to my WHM
[url=http://enable-cors.org/server_apache.html]enable cross-origin resource sharing
Can u guys help me on this?
Thks
-
Hello :) Have you tried adding the entry to your .htaccess file within the account you want it enabled on? Thank you. 0 -
I know this is old but in case someone else has this issue like I did, here is how I was able to fix it... Add the following line to the .htaccess file... Header set Access-Control-Allow-Origin "*"
The instructions to enable CORS say to put it into the apache configuration but considering this would get overwritten, I would add it to the .htaccess. enable cross-origin resource sharing Again sorry to open an old thread but I felt someone else may have this same issue like I did so I wanted to share since I could not find anything else relevant to fix it.0
Please sign in to leave a comment.
Comments
2 comments