Reputation: 166
Is it possible to make a jQuery request to get a webpage if this request originates from localhost? I am currently using wamp server and get the message XMLHttpRequest cannot load <url>. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost' is therefore not allowed access.
Upvotes: 0
Views: 30
Reputation: 134
On apache :
Access-Control-Allow-Origin: *
Or on php :
Check here : Origin is not allowed by Access-Control-Allow-Origin
Upvotes: 1