Skip to content

Instantly share code, notes, and snippets.

@rishi-raj-jain
Last active June 29, 2021 10:59
Show Gist options
  • Save rishi-raj-jain/d208a72f93a5c3a20d61eed68c4ac989 to your computer and use it in GitHub Desktop.
Save rishi-raj-jain/d208a72f93a5c3a20d61eed68c4ac989 to your computer and use it in GitHub Desktop.
(COOP) Cross-Origin Opener Policy Headers
const { Router } = require('@layer0/core/router')
new Router()
.get("/:route", ({ setResponseHeader }) => {
setResponseHeader("Cross-Origin-Opener-Policy", "same-origin-allow-popups")
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment