Enabling CORS for web hosting?


#1

Hi,

Is it possible to enable CORS (Cross-Origin Resource Sharing) to allow cross domain access to files? I’ve poked around the Control Panel and didn’t see such an option.

I can be more precise/technical but wonder if this is an easy setting and I’m just missing how it’s done.

Thanks,

Sebastian.


#2

Hi there, typically this can be set in an .htaccess file for the site with a single line enable cross-origin resource sharing (on cPanel servers there’s no need to restart Apache).