Redirection issue

I have a React SPA application using react router dom.

and I have some proxies. Here is the netlify.toml file

[[redirects]]
  from = "/api/*"
  to = "https://api.mysite.com/:splat"
  force = true

[[redirects]]
  from = "/*"
  to = "/"
  status = 200

The problem is when i want to redirect to signin page based on cookie validation in server. I use 304 redirection to signin page as response. But in signin page, cors error occurs


Is there any way to resolve this?

hi there, before we dig in, did you see this brand new guide on debugging redirects?

I strongly suggest you give it a thorough read through and see if this fixes your problem:

if not, please post again, and we’ll try and troubleshoot.