jacebrowning/memegen

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

image

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.

EDITED: I can also confirm the no-cors mode doesn't work.
image

@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
Screenshot 2022-02-17 at 17 36 03

I cleaned the cache tried from incognito mode and used a different Browser, all of these environments throw me the CORS error.
image

image

I asked a colleague and the issue is happening for him too.

Again, thank you for your attention and quick response.

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.