I want to install/use CORS on my Ubuntu server 18.0.4 LTS for the Wordpress websites that I am hosting. Normally I just add the line in the .htaccess but that doesn't seem to work anymore.
Any suggestions are appreciated.
I want to install/use CORS on my Ubuntu server 18.0.4 LTS for the Wordpress websites that I am hosting. Normally I just add the line in the .htaccess but that doesn't seem to work anymore.
Any suggestions are appreciated.
.htaccess is meant for directory level configurations. You should only use that when you are configuring something specific to a directory. The change you are trying to make (define a CORS policy) should be done at the server level. So this is changing the configuration on the Apache web server main config, or config for the site. Both are on the server configuration level.
See here for server specific info: https://enable-cors.org/server.html
Google CORS "webserver type" for web server specific information if the above link does not work. A search for CORS apache for example returned the page above.