-
Notifications
You must be signed in to change notification settings - Fork 184
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 disableHostCheck
to WebpackDevServer
#932
Comments
This unfortunately isn't true. The security issue here is a DNS rebinding attack which will still affect development - see the explanation in: |
@edmorley Thanks for the head-up. I re-read the DNS rebinding vulnerability and got it. Hm~, then I have to update my local file in |
But, even webpack-dev-server takes request with hostname Without tweak on react-sever code, developer has to work on Is there anything we can do in |
Did anyone come up with a solution to this? |
If it helps, recent versions of With those changes there should hopefully be very few cases that require the use of |
No longer necessary due to #1003. |
Since webpack-dev-server 0.16.4, it requires
webpack-dev-server
to be initialized with host name according to webpack/webpack-dev-server#887 . Be default,webpack-dev-server
only accepts requests with same host name passed in option. Even thoughlocalhost
is in blacklist. This still brings some trouble in local development, because sometimes we'd like to access development environment from another device. In these cases,react-server
is accessed with IP address or domain other thanlocalhost
.The easies fix is to add
disableHostCheck
in options toWebpackDevServer
in https://github.com/redfin/react-server/blob/v0.6.4/packages/react-server-cli/src/commands/start.js#L180-L188 . `HotLoadJsServer` tends to be only used in development. So, this change would not bring security issue.
The text was updated successfully, but these errors were encountered: