Skip to content

Comments

add origin#73

Merged
louisachu merged 2 commits intomainfrom
devsite-2061-fragment-localhost
Jan 6, 2026
Merged

add origin#73
louisachu merged 2 commits intomainfrom
devsite-2061-fragment-localhost

Conversation

@louisachu
Copy link
Collaborator

@louisachu louisachu commented Jan 6, 2026

Adding cors origin for localhost to run from localhost:3000 to call localhost:3002.

Screenshot 2026-01-06 at 10 28 04 AM

Copy link
Collaborator

@timkim timkim left a comment

Choose a reason for hiding this comment

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

I think we only want to set these if it's in local dev mode. I have a bit of code here:

if(['127.0.0.1', 'localhost'].includes(hostname)) {

that shows how I'm detecting local dev mode. I think we want to ensure we only set cors response when in local dev. Not sure what would happen if we set it and left it on.

@louisachu louisachu merged commit f647a57 into main Jan 6, 2026
1 check failed
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.

2 participants