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

add cors #110

Closed
wants to merge 1 commit into from
Closed

add cors #110

wants to merge 1 commit into from

Conversation

Dakuan
Copy link

@Dakuan Dakuan commented Feb 17, 2015

This fixes a bug when using a hot-loader. See gaearon/react-hot-loader#56

@troutowicz
Copy link
Contributor

This isn't really a bug. When doing local development, why would you need CORS enabled? If you want the ability to access the the webpack dev server anywhere inside your local network, you can just use the --host CLI flag. This flag was not included in the documentation, I updated the docs.

@sokra sokra closed this Mar 4, 2015
@gilesbradshaw
Copy link

When you are writing an isomorphic application you want to do a hot reload of the client AND restart node. Otherwise the two get out of sync when you next refresh the page. However in that instance you get a

XMLHttpRequest cannot load http://localhost:7001/assets/f6f6e17915bd988e786f.hot-update.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:7000' is therefore not allowed access.

@yinsang
Copy link

yinsang commented Feb 27, 2018

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.

5 participants