I am trying to create a very simple proxy to allow Ajax apps to load data from a different domain. I have this .htaccess which worked perfectly in a php/static webapp I did a year ago and put in the root of the website:
I thought it was basically a suitable solution also in this case, so I tried to change it to something like this (after many failures):
And put it in a subfolder of an older (few years ago) webapplication but I get 505. Looks like it tries to look for the path in the same domain. Maybe in this old webapplication the module mod_proxy_http is not loaded? I got a warning mentioning this in one of the log files. Thanks for any opinion! asked 19 Jan '13, 09:08 gabon |
A 301 redirect would not normally work for JavaScript cross domain checking, but mod_proxy would. In order to use mod_proxy you would have to make a custom apache stack. It would be easier to write a server-side script which fetched the JSON you require and than re-post it on behalf of the current domain. answered 19 Jan '13, 17:37 johns |