Skip to content

Instantly share code, notes, and snippets.

@rishi-raj-jain
Created June 24, 2021 11:48
Show Gist options
  • Save rishi-raj-jain/5a1102131f374378d2c4db0e56fb4a34 to your computer and use it in GitHub Desktop.
Save rishi-raj-jain/5a1102131f374378d2c4db0e56fb4a34 to your computer and use it in GitHub Desktop.
X-Frame-Options Headers
const { Router } = require('@layer0/core/router')
new Router()
.get("/:route", ({ setResponseHeader }) => {
setResponseHeader("X-Frame-Options", "SAMEORIGIN")
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment