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

Helmet as default express middleware in react-server-cli #812

Merged
merged 3 commits into from
Jan 9, 2017
Merged

Helmet as default express middleware in react-server-cli #812

merged 3 commits into from
Jan 9, 2017

Conversation

feychou
Copy link
Contributor

@feychou feychou commented Jan 9, 2017

Addresses these website issues:

#640
#641
#639

It relies on helmet's default configuration; its overall purpose is to make react-server apps more secure by default.

@CLAassistant
Copy link

CLAassistant commented Jan 9, 2017

CLA assistant check
All committers have signed the CLA.

@doug-wade
Copy link
Collaborator

lgtm 👍 -- let's wait to merge until @gigabo or @roblg takes a look, though.

@@ -143,7 +143,7 @@ export default (webpackConfig) => {
In the `.reactserverrc` file add an option for `webpackConfig` that points to that function file and when React Server is setting up Webpack it will call your function with the result of the built in Webpack options, allowing you to make any modifications needed. This may also be specified on the command line with the `--webpack-config=<FILE>` option.

### Use Custom Express Middleware
Currently the default Express Middlewares used are compression, body-parser, cookie-parser. If you need to setup custom express middleware you can do it with a setup function.
Currently the default Express Middlewares used are compression, body-parser, cookie-parser, helmet with default configuration. If you need to setup custom express middleware you can do it with a setup function.
Copy link
Contributor

Choose a reason for hiding this comment

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

We've got enough of these that maybe we should break them out into a bullet list?

Would also be helpful to link them to the project pages so people who aren't familiar with them (I'd never heard of helmet) can learn more.

@gigabo
Copy link
Contributor

gigabo commented Jan 9, 2017

@feychou Thanks for this. Nice to address so many issues at once!

It's unfortunately already diverged from master and has a conflict. Please rebase if you get a chance.

@gigabo gigabo added the security label Jan 9, 2017
@gigabo gigabo merged commit 4b0e43d into redfin:master Jan 9, 2017
@drewpc drewpc modified the milestones: Production ready, 0.6.0 Jan 27, 2017
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