Getting this error: has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No

PLEASE help us help you by writing a good post!

  • We need to know your netlify site name. Example: https://pawstagramappp.netlify.app
  • Did you try Ask Netlify, our generative AI chatbot, before posting? Yes

Hi, after deployment. I get this CORS error:

login:1 Access to XMLHttpRequest at ‘https://pawstagramapp.adaptable.app/auth/register’ from origin ‘https://main--pawstagramappp.netlify.app’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: No ‘Access-Control-Allow-Origin’ header is present on the requested resource.

not sure why it’s blocked and how to address it…

Appreciate you help!

1 Like

thanks, but both frontend and backed are using the same protocols. Do I need to modify anything from backend? it looks like it is not accepting the request, not sure though.

That guide documents every possible type of error (at least the ones we have seen so far), including the type you’re facing. Please refer to it carefully and apply the fix relevant to your case.

1 Like

will do as advised, thank you!

If you need further clues, you should be looking for help in:

and