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');
app.use(featurePolicy({
features: {
fullscreen: ["'*'"],
vibrate: ["'none'"],
fullscreen: ["*"],
//vibrate: ["'none'"],
payment: ["'none'"],
microphone: ["'none'"],
camera: ["'none'"],
speaker: ["*"],
syncXhr: ["'self'"],
notifications: ["'self'"]
//notifications: ["'self'"]
}
}));
app.use(helmet({

View File

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