Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: listen on 127.0.0.1 #15

Merged
merged 1 commit into from
Feb 8, 2023
Merged

fix: listen on 127.0.0.1 #15

merged 1 commit into from
Feb 8, 2023

Conversation

dwang
Copy link
Collaborator

@dwang dwang commented Feb 8, 2023

Status:

🚀 Ready

Description

The Vite server listens on localhost by default, but the server needs to listen on 127.0.0.1 to match the API's origin. A mismatch will cause the same-origin policy to fail, so cookies will not be shared.

@vercel
Copy link

vercel bot commented Feb 8, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
points-frontend ✅ Ready (Inspect) Visit Preview Feb 8, 2023 at 1:04AM (UTC)

Copy link
Member

@gracewzhang gracewzhang left a comment

Choose a reason for hiding this comment

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

so fast O_O

@gracewzhang gracewzhang merged commit ccd9516 into main Feb 8, 2023
@dwang dwang deleted the listen-on-127.0.0.1 branch February 8, 2023 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants