Enable CORS in wordpress Enable CORS in wordpress wordpress wordpress

Enable CORS in wordpress


You can also enable CORS directly in Apache by including the line:

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

Include this line within the <Directory>, <Location>, <Files> or <VirtualHost> sections of your server config (usually located in a *.conf file, such as httpd.conf or apache.conf), or within a .htaccess file.

Additional information, including how to check for errors and/or reboot apache at https://enable-cors.org/server_apache.html