user1506119
user1506119

Reputation: 166

Fetching webpages from localhost

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

Answers (1)

pablofr
pablofr

Reputation: 134

On apache :

Access-Control-Allow-Origin: *

Or on php :

Check here : Origin is not allowed by Access-Control-Allow-Origin

Upvotes: 1

Related Questions