chore: Return new permissions-policy header on app pages

closes #2040
This commit is contained in:
Tom Moor
2021-05-12 20:16:55 -07:00
parent 9f226cf3b4
commit 9d03c89c02

View File

@ -168,7 +168,12 @@ app.use(mount("/auth", auth));
app.use(mount("/api", api));
// Sets common security headers by default, such as no-sniff, hsts, hide powered
// by etc
// by etc, these are applied after auth and api so they are only returned on
// standard non-XHR accessed routes
app.use(async (ctx, next) => {
ctx.set("Permissions-Policy", "interest-cohort=()");
await next();
});
app.use(helmet());
app.use(
contentSecurityPolicy({