News for hackers. Stuff that matters.
Re:Show HN: JSONP - enable cross-domain requests to any JSON... by willtheperson on Saturday May 12, 2012 @11:52PM (#3965978)
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/

There are no comments on this comment yet.