Skip to content

Conversation

@nicknisi
Copy link
Member

Quick fix for those annoying CORS errors that show up in console when clicking sign-in/sign-up buttons.

Swapped out Next.js Link components for regular anchor tags since these routes just do server redirects to WorkOS anyway. No need for client-side navigation here and it eliminates the prefetch issues.

Should be good to go!

Replace Next.js Link components with anchor tags for sign-in/sign-up
buttons to prevent prefetch-induced CORS errors when accessing WorkOS
authorization endpoints.
Copy link
Member

@nholden nholden left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@nicknisi nicknisi merged commit bc89abe into main Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants