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 HMR by providing 'Access-Control-Allow-Origin': '*' header to devServer config #356

Closed
DethAriel opened this issue Jul 26, 2017 · 0 comments · Fixed by #357
Closed
Labels

Comments

@DethAriel
Copy link
Contributor

This issue is a:

  • Bug report

Hot Module replacement for nwb server-react-app (and maybe other commands) stopped working after webpack-dev-middleware version was updated, see the cause here. The fix is to add the following to the devServer config:

{
  devServer: {
    headers: {
      'Access-Control-Allow-Origin': '*'
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants