Skip to content

Instantly share code, notes, and snippets.

@rishi-raj-jain
Created June 29, 2021 21:23
Show Gist options
  • Save rishi-raj-jain/84e206f6322a1717fee2e90a9411f66e to your computer and use it in GitHub Desktop.
Save rishi-raj-jain/84e206f6322a1717fee2e90a9411f66e to your computer and use it in GitHub Desktop.
Referrer-Policy Headers
const { Router } = require("@layer0/core/router");
module.exports= new Router()
.get("/", ({ setResponseHeader }) => {
setResponseHeader("Referrer-Policy", "origin-when-cross-origin");
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment