-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No access control allow-origin in header #4
Comments
This would be a great change to make as its intended to be a public api |
I use a short PHP script to fetch the data and get around the CORS objection. Not the perfect solution, but you can see it in action here: https://github.com/oddlyaromatic/no-repeat-poets/blob/master/poem-getter.php. I basically run into CORS issues so often that simply running the request from the server and passing the response back to my JS code is my default solution, and pretty quick to implement. For really quick in-browser testing, I use this: https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi?hl=en It's useful but it will mess up your experience if you accidentally turn it on for regular websites you are just visiting. I agree it would be nice if this were amended on the server :) |
Thanks @oddlyaromatic ! FYI I also found https://market.mashape.com/thundercomb/poetry-db which solved my silly little use case for a demo app :) |
The 'Access-Control-Allow-Origin' header has been added thanks to @tenyo's change. It is now live:
|
This issue will now be closed but if there are further concerns around it feel free to open a new one. |
I am having an issue (image attached). From searching online it looks like there is a line of code you could add on your end so that we would be able overcome this issue. I would greatly appreciate any help on this matter. I am very excited to work with this wonderful looking tool. thank you
The text was updated successfully, but these errors were encountered: