From cfaba7717da76117187453bc9e04b74c8295ed82 Mon Sep 17 00:00:00 2001 From: = Date: Wed, 13 Oct 2021 16:38:13 +0200 Subject: [PATCH] Fix permissions-policy header --- firebase.json | 2 +- webpack.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/firebase.json b/firebase.json index 48df2786a..d345aebbc 100644 --- a/firebase.json +++ b/firebase.json @@ -26,7 +26,7 @@ }, { "key": "Permissions-Policy", - "value": "geolocation=(self);" + "value": "geolocation=(self)" }, { "key": "Referrer-Policy", diff --git a/webpack.config.js b/webpack.config.js index fb9f7b43c..aa2e6bdcd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -90,6 +90,7 @@ module.exports = (env, args) => ({ headers: { 'Content-Security-Policy': "child-src 'self' blob:;default-src 'self'; script-src 'self' 'unsafe-inline' https://www.google-analytics.com https://apis.google.com blob:; connect-src 'self' wss://*.entur.io https://api.met.no https://stats.g.doubleclick.net https://*.tiles.mapbox.com https://api.mapbox.com https://events.mapbox.com https://*.entur.io https://*.entur.org https://*.cloudfunctions.net https://*.googleapis.com https://www.google-analytics.com; style-src 'self' 'unsafe-inline'; img-src 'self' blob: data: https://www.google.no https://www.google.com https://*.googleapis.com https://www.google-analytics.com; object-src 'none'; frame-ancestors https:; manifest-src 'self' blob:; frame-src https://entur-tavla-staging.firebaseapp.com/ https://entur-tavla-prod.firebaseapp.com/", + 'Permissions-Policy': 'geolocation=(self)', }, }, plugins: [