Comment on Show HN: JSONP - enable cross-domain requests to any JSON API (w/ AJAX)Comments−willtheperson14yI 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 configProxyPass /api/ http://destination.com/api/ ProxyPassReverse /api/ http://destination.com/api/
Comments
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/ ProxyPassReverse /api/ http://destination.com/api/