virtualmin and CORS

hello -

i am getting this nasty looking message when running over a proxy-server:

XMLHttpRequest cannot load http://foo.bar:12354/. 
   No 'Access-Control-Allow-Origin' header is present on the requested resource. 
   Origin 'http://foo.bar' is therefore not allowed access.

some forums have suggested that apache needs to have a CORS setting. i tried putting

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

in the dot-access file but that didnt work.

any thoughts?

Hi,

If you need this for Apache, then create a “.htaccess” file and place it in the root of your website with the following line.

Header set Access-Control-Allow-Origin "*" Best Regards, Peter Knowles TPN Solutions

Email: pknowles@tpnsolutions.com
Phone: 604-782-9342
Skype: tpnsupport
Website: http://www.tpnsolutions.com


Ask me about my new support plans which include a FREE copy of Virtualmin Pro!!!