Next.js Discord

Discord Forum

so i am fetching an api and sometimes if i am unauthorized that api return 401 response so when it r

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
so i am fetching an api and sometimes if i am unauthorized that api return 401 response so when it return 401 i get error cors error requested source doesnt have allow all origins header can anyone explain why only get cors error when backend sends 401 other wise the api works fine

0 Replies