We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Seems interface HelmetOptions is no longer public in helmet version 4.1.0.
interface HelmetOptions
Is that change intentional?
interface HelmetOptions { contentSecurityPolicy?: MiddlewareOption<ContentSecurityPolicyOptions>; dnsPrefetchControl?: MiddlewareOption<XDnsPrefetchControlOptions>; expectCt?: MiddlewareOption<ExpectCtOptions>; frameguard?: MiddlewareOption<XFrameOptionsOptions>; hidePoweredBy?: MiddlewareOption<never>; hsts?: MiddlewareOption<StrictTransportSecurityOptions>; ieNoOpen?: MiddlewareOption<never>; noSniff?: MiddlewareOption<never>; permittedCrossDomainPolicies?: MiddlewareOption<XPermittedCrossDomainPoliciesOptions>; referrerPolicy?: MiddlewareOption<ReferrerPolicyOptions>; xssFilter?: MiddlewareOption<never>; }
The text was updated successfully, but these errors were encountered:
I hope that change will be reverted
Sorry, something went wrong.
Unfortunately, reverting this is not possible, and its exposure was a bug in v4.0.0.
However, you can emulate it yourself (lifted from this comment):
import helmet = require('helmet'); const opts: Parameters<typeof helmet>[0] = { // strongly typed helmet options go here... }; helmet(opts);
Hope this helps.
it works, thank you
No branches or pull requests
Seems
interface HelmetOptions
is no longer public in helmet version 4.1.0.Is that change intentional?
The text was updated successfully, but these errors were encountered: