NextJS - CORS No 'Access-Control-Allow-Origin' header is present on the requested resource

Hi @noelt.dolan,

Your application is making a CORS request to the /authorize endpoint instead of redirecting the user’s browser, which is leading to a CORS error as the /authorize endpoint does not support CORS.

Exactly as @samuel5 found, the recommended fix is to use anchor (<a>) tags instead of Link tags when authenticating users. Using Link tags causes Javascript to call /authorize instead of redirecting the user’s view.

See these resources: