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
Whenever I use this package, it doesn't work in my local environment because https://localhost:### throws errors. Can we add another check like this?
if(req.headers && req.headers.host && req.headers.host === 'localhost:####') { next(); }
The text was updated successfully, but these errors were encountered:
Maybe just do something like this?
if (app.get("env") === "production") { app.use(enforce.HTTPS({ trustProtoHeader: true })); }
Sorry, something went wrong.
Fixing express-sslify issues
bb2470d
Issue 1: Sequence of codes enforce.HTTPS has to be called first Ref: florianheinemann/express-sslify#25 Issue 2: Spelling mistake env not enve Ref: florianheinemann/express-sslify#22
No branches or pull requests
Whenever I use this package, it doesn't work in my local environment because https://localhost:### throws errors. Can we add another check like this?
if(req.headers && req.headers.host && req.headers.host === 'localhost:####') {
next();
}
The text was updated successfully, but these errors were encountered: