dijs / wiki

Wikipedia Interface for Node.js
MIT License
313 stars 62 forks source link

Not working due to CORS in Firefox #79

Closed RSchade closed 6 years ago

RSchade commented 6 years ago

I'm using the plugin with webpack currently on the client, and while it behaves fine on Google Chrome it responds with an error due to CORS in Firefox.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://en.wikipedia.org/w/api.php?list=random&rnnamespace=0&rnlimit=1&format=json&action=query&redirects=&origin=*. (Reason: CORS header ‘Access-Control-Allow-Origin’ missing).

No such error is thrown in Google Chrome

dijs commented 6 years ago

Fix should be in v4.6.2

fsonntag commented 5 years ago

Having the same issue with Safari and 5.0.0-alpha.1

dijs commented 5 years ago

That is really odd since nothing has changed with the code that fixed the original problem. Could you send me a code example of this not working please?