Cors issue, "wiki" task

Cors issue, "wiki" task
0.0 0


Can smbd PLEASE clarify cors for me?

I ran into same origin policy issue during wiki task. I’ve read whole bunch of articles on the subject and tried to set parametr origin to *, and also tried to use jsonp. In both cases it was working 50/50

my pen -


In super simple, but not technically accurate terms:

Cors prevents someone from requesting resources from your server.

Whenever a browser receives a response from a server, it will store the origin domain.

Any requests for resources from then on will send the parent domain and ask for access to the server. The server can then decide if that is a valid parent domain, and return those resources.

Access-Control-Allow-Origin set by you is verified with the browser.

Since you seem to be trying to hit the wikipedia api, you will need to use the .ajax method to make any CORS