Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: