Better headers

This commit is contained in:
Kasper Rynning-Tønnesen
2019-03-21 20:16:39 +01:00
parent c8614bef52
commit dc3bd12f69
2 changed files with 121 additions and 121 deletions

View File

@@ -51,14 +51,14 @@ var helmet = require('helmet');
var featurePolicy = require('feature-policy'); var featurePolicy = require('feature-policy');
app.use(featurePolicy({ app.use(featurePolicy({
features: { features: {
fullscreen: ["'*'"], fullscreen: ["*"],
vibrate: ["'none'"], //vibrate: ["'none'"],
payment: ["'none'"], payment: ["'none'"],
microphone: ["'none'"], microphone: ["'none'"],
camera: ["'none'"], camera: ["'none'"],
speaker: ["*"], speaker: ["*"],
syncXhr: ["'self'"], syncXhr: ["'self'"],
notifications: ["'self'"] //notifications: ["'self'"]
} }
})); }));
app.use(helmet({ app.use(helmet({

View File

@@ -68,14 +68,14 @@ var helmet = require('helmet');
var featurePolicy = require('feature-policy'); var featurePolicy = require('feature-policy');
app.use(featurePolicy({ app.use(featurePolicy({
features: { features: {
fullscreen: ["'*'"], fullscreen: ["*"],
vibrate: ["'none'"], //vibrate: ["'none'"],
payment: ["'none'"], payment: ["'none'"],
microphone: ["'none'"], microphone: ["'none'"],
camera: ["'none'"], camera: ["'none'"],
speaker: ["*"], speaker: ["*"],
syncXhr: ["'self'"], syncXhr: ["'self'"],
notifications: ["'self'"] //notifications: ["'self'"]
} }
})); }));
app.use(helmet({ app.use(helmet({