Hello, I’m using NextJS 13 using the App Router and I’m using a beta version of Auth0.
Everything seemed to work just fine, however I noticed an issue when attempting to log out.
It shows a preflight CORS issue and right after that a requested which returned with code 404.
Apparently, this is the case for both the logout page as well as the authorize page.
The weird thing is, the issue only seems to happen when I use a <Link>
component in NextJS. If I use a regular <a>
tag, the logout script works just fine but I cannot use this in production.
So far I have tried adding custom headers to my next.config.js but it did not seem to resolve the issue. I’ve also tried changing CORS related settings in Auth0.
Would appreciate some help.