Hey, I've been hit with "`Access to fetch at 'http...
# support-questions
t
Hey, I've been hit with "`Access to fetch at 'https://[backend-url]/auth/signin' from origin 'https://[frontend-url]' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled`" and I can't really seem to solve it. I'm able to sign up users but not login.
r
hey @texoport
does the OPTIONS API pass and then the POST API is made? Or the POST API is not made?
t
I'm actually not entirely sure; how would I check that?
r
see the browser's network tab
t
there's a 502 on fetch but I don't know if that helps
r
ah right. So the API is failing.. are you running nginx in front of the API server?
t
Yes, I am
r
right, so you need to modify the nginx config to allow for larger header size
t
Ah, cool
r
yup
t
Thanks, I'll attempt that rn
I don't see a 431 anywhere though, so is that still relevant?
r
yes
t
I just did a curl of the request and seem to be getting this
r
yup
thats what nginx retiurns
you should google how to increase response header size limit
t
I just did that and it worked. Not what I'd have expected was the issue at all. Holy **. Thanks!
132 Views