Thursday, 8 August 2013

how to allow ACCESS-CONTROL-ALLOW-ORIGIN aka cross-domain on wampserver

how to allow ACCESS-CONTROL-ALLOW-ORIGIN aka cross-domain on wampserver

XMLHttpRequest cannot load https://webservice.com?param=hahah. Origin
http://{domain} is not allowed by Access-Control-Allow-Origin.
I get this when I try to make a webservice call through wampserver, how
could I enable this on wampserver?
or how may i just jsonP to obtain xml data without javascript throwing an
error.

No comments:

Post a Comment