I am having an issue with enabling cors in my multisite wordpress.
I am getting the following error in the Google Chrome console when trying to add a new image with the worpress multiple uploader:
XMLHttpRequest cannot load http://www.mysite.com/wp-admin/async-upload.php. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://new.mysite.com' is therefore not allowed access.
As you can see this is because i translated the url form www to new. I am aware that this is a Cross Origin Resource Sharing issue but a was not able to solve it.
I tried to edit my site configuration adding this to my apache2 httpd.conf the following:
Header set Access-Control-Allow-Origin "*"
Header set Access-Control-Allow-Methods "GET, POST, OPTIONS"
but didn't work.
does anyone have any idea how to solve this?
Thanks in advance.