Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
willtheperson
on May 13, 2012
|
parent
|
context
|
favorite
| on:
Show HN: JSONP - enable cross-domain requests to a...
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:
ProxyPass /api/ http://destination.com/api/ ProxyPassReverse /api/ http://destination.com/api/