Hi, all.
I built a MERN stack app (live link here). Source code on GitHub here.
I get CORS issues for the first few minutes or so, and then it works fine. Still occasionally gives issues after that too but not permanently. I’ve already configured CORS, though, so I don’t know why this is happening. The error it gives says that the “Access-Control-Allow-Origin” header is missing–I’ve given it, though. It also sometimes gives the same error for the preflight response.
I don’t think this is similar to the other topics it’s saying it’s similar to. Only thing is that I also have the issue of it saying “Not Found” when I visit a link in the app and then refresh the page.
Edit for more info: The CORS issues I said happen at first for a few minutes don’t always come up, but the ones I mentioned happening afterwards do; it makes it so I can’t log back in if it logs me out upon refreshing the page, and the refresh token fetching route gives the CORS error (the login route does too).