CORS error on https://api.memegen.link/templates/
Josehower opened this issue ยท 10 comments
HI @jacebrowning,
Thank you for this API is amazing and we have been using it to teach React on our coding Bootcamp for some years now.
I found that some days ago trying to fetch the templates from https://api.memegen.link/templates/ is throwing a CORS error.
This is are the links to the app that used to work before
Deployed: https://react-meme-scraper.netlify.app/
Repo: https://github.com/Josehower/React-meme-generator
Please let me know if this is intended.
and thank you in advance for any help you can give me here.
Good energy ๐๐๐๐
That is mostly likely caused by #678. I'll investigate...
OK, this should be fixed by dfe7a9c. Thanks for the report and let me know if that's not working for you!
Thanks for the fast response!
@jacebrowning unfortunately the cors error is still happening.
I am going to try to send "no-cors" mode. But still, this may break a lot of projects using the last implementation.
@Josehower is it possible something is cached on your end? This is what I see on your site:
@jacebrowning unfortunately the cors error is also happening for me
Can one of you paste the values or share a screenshot of the Headers tab for the templates
request?
You should see access-control-allow-origin: *
for an uncached request.
KK Just checked from my mac and now I got the right response.
thanks for your help. ๐
Good to know! It's possible there's still a misconfiguration (see sanic-org/sanic-ext#62 (comment) regarding OPTIONS
) but I think this may have just taken a while for the cache to propagate.