4 ms·
I tried this once with a proxy script and it eventually lead to inconsistencies. I've settled on using an apache reverse proxy when I need to do cross-domain js
by willtheperson 14y ago
I tried this once with a proxy script and it eventually lead to inconsistencies. I've settled on using an apache reverse proxy when I need to do cross-domain json posts (typically for dev work).Just put this in your vhost config
ProxyPass /api/ http://destination.com/api/ http://destination.com/api/
ProxyPassReverse /api/ http://destination.com/api/ http://destination.com/api/