Skip to content

Commit

Permalink
Update https-enforcement.js
Browse files Browse the repository at this point in the history
  • Loading branch information
geoffrey-wu committed Oct 12, 2024
1 parent aa125e9 commit 3cca6c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/https-enforcement.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default function httpsEnforcement (req, res, next) {
const hostname = req.hostname;
console.log(req.protocol);

// Use HTTPS if not on localhost
if (req.protocol !== 'https' && !['localhost', '127.0.0.1'].includes(hostname)) {
Expand Down

0 comments on commit 3cca6c9

Please sign in to comment.