Last active
June 29, 2021 10:59
-
-
Save rishi-raj-jain/d208a72f93a5c3a20d61eed68c4ac989 to your computer and use it in GitHub Desktop.
(COOP) Cross-Origin Opener Policy 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("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