Last active
June 24, 2021 11:39
-
-
Save rishi-raj-jain/8c1b3960548f1d10b1576605111a8494 to your computer and use it in GitHub Desktop.
HSTS (Strict-Transport-Security) Headers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Router } = require('@layer0/core/router') | |
new Router() | |
.get("/:route", ({ setResponseHeader }) => { | |
setResponseHeader("Strict-Transport-Security", "max-age=31536000; includeSubDomains") | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment