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

Wiki code sample mistake #426

Closed
gricey432 opened this issue May 18, 2023 · 1 comment
Closed

Wiki code sample mistake #426

gricey432 opened this issue May 18, 2023 · 1 comment

Comments

@gricey432
Copy link

I don't think there's a way I can directly contribute to Wiki content.

Under "I want to use some middleware with different options"
https://github.com/helmetjs/helmet/wiki/Conditionally-using-middleware#i-want-to-use-some-middleware-with-different-options

The second last line is

cspMiddleware(res, res, next);

but I think it is supposed to be

cspMiddleware(req, res, next);
@EvanHahn
Copy link
Member

Thanks for reporting.

In the short term, this is now fixed.

In the long term, I'll make it easier to contribute to this documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants