mirror of
				https://github.com/KevinMidboe/zoff.git
				synced 2025-10-29 18:00:23 +00:00 
			
		
		
		
	Better headers
This commit is contained in:
		| @@ -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({ | ||||||
|   | |||||||
| @@ -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({ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user