#CORS error when uploading emote

1 messages · Page 1 of 1 (latest)

crystal turret
#

Basically title, if you try to upload an emote on the website you'll get a CORS error. It looks like something is missconfigured on the backend. edit: Just in case, I'm using firefox 118.0.2 on linux

crystal turret
#

For some reason the problem is with this gif. I resized it in a website and it worked. I thought that maybe the problem was the size. Even though it's less than 6mb. I uploaded a gif larger than that and there was no problem.

#

The problem seems to be with cloudflare. When I try to upload that emote, I get the cloudflare challenge before sending it to the server. And it doesn't have the proper headers, the Access-Control-Allow-Origin is missing

#

I tried to send the request with postman to see the response and here I saw the cloudflare challenge and that the header was missing

#

Maybe you should add something like this

#

Maybe some more headers for allowed headers, methods, etc