You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Unsure if this is an intended effect (sorry if so)
At the moment the api cannot be queried from other websites and the URL must be entered manually.
This is due to a missing response header.
Cross-Origin Resource Sharing A security feature that by default disallows foreign requests to a server for security purposes. (ie to prevent spoofing) CORS must be allowed by supplying the following response header Access-Control-Allow-Origin: *
With * Meaning any origin, if this header is missing then the client's browser will block the request.
I was interested in using this api for a personal project and was disappointed to see the request fail. If this behavior is intended or you are no longer interested in maintaining this project then I completely understand!
Otherwise I hope you would be amenable to implementing the fix suggested above. (Unfortunately I'm not so knowledgeable in PHP as to be able to implement this change myself otherwise I wouldn't bother you as such)
Thanks either way and happy coding!
The text was updated successfully, but these errors were encountered:
Hello Happy New Year,
Would adding something like this under <?php work? (sorry also not very knowledgable in php)
header("Access-Control-Allow-Origin: *");
Unable to query API within other sites
- Unsure if this is an intended effect (sorry if so)
At the moment the api cannot be queried from other websites and the URL must be entered manually.
This is due to a missing response header.
I was interested in using this api for a personal project and was disappointed to see the request fail. If this behavior is intended or you are no longer interested in maintaining this project then I completely understand!
Otherwise I hope you would be amenable to implementing the fix suggested above. (Unfortunately I'm not so knowledgeable in PHP as to be able to implement this change myself otherwise I wouldn't bother you as such)
Thanks either way and happy coding!
The text was updated successfully, but these errors were encountered: