Skip to main content

How enable CORS on Apache in WHM

Comments

2 comments

  • cPanelMichael
    Hello :) Have you tried adding the entry to your .htaccess file within the account you want it enabled on? Thank you.
    0
  • HollyRidge
    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.