fix pwa manifest
Signed-off-by: Simon Smith <simonsmith5521@gmail.com>
Simon Smith committed
Oct 6, 2023 at 18:24 UTC
4171a0766fbe4de0701dbd4f14aa87ea8af76d46
4 files changed
+4
-1
views/default.handlebars
+1
@@ -7,6 +7,7 @@
7
<meta name="apple-mobile-web-app-capable" content="yes" />
8
<meta name="format-detection" content="telephone=no" />
9
<meta name="robots" content="noindex,nofollow">
10
+ <link rel="manifest" href="{{{domainurl}}}manifest.json">
11
<link type="image/x-icon" href="{{{domainurl}}}favicon.ico" rel="shortcut icon" />
12
<link keeplink=1 type="text/css" href="styles/style.css" media="screen" rel="stylesheet" title="CSS" />
13
<link type="text/css" href="styles/ol.css" media="screen" rel="stylesheet" title="CSS" />
views/login.handlebars
+1
@@ -7,6 +7,7 @@
7
<meta name="apple-mobile-web-app-capable" content="yes" />
8
<meta name="format-detection" content="telephone=no" />
9
<meta name="robots" content="noindex,nofollow">
10
+ <link rel="manifest" href="{{{domainurl}}}manifest.json">
11
<link rel="shortcut icon" type="image/x-icon" href="{{{domainurl}}}favicon.ico" />
12
<link keeplink=1 type="text/css" href="styles/style.css" media="screen" rel="stylesheet" title="CSS" />
13
<link rel="apple-touch-icon" href="/favicon-303x303.png" />
views/login2.handlebars
+1
@@ -7,6 +7,7 @@
7
<meta name="apple-mobile-web-app-capable" content="yes" />
8
<meta name="format-detection" content="telephone=no" />
9
<meta name="robots" content="noindex,nofollow">
10
+ <link rel="manifest" href="{{{domainurl}}}manifest.json">
11
<link rel="shortcut icon" type="image/x-icon" href="{{{domainurl}}}favicon.ico" />
12
<link keeplink=1 type="text/css" href="styles/style.css" media="screen" rel="stylesheet" title="CSS" />
13
<link rel="apple-touch-icon" href="/favicon-303x303.png" />
webserver.js
+1
-1
@@ -6265,7 +6265,7 @@ module.exports.CreateWebServer = function (parent, db, args, certificates, doneF
6265
'Referrer-Policy': 'no-referrer',
6266
'X-XSS-Protection': '1; mode=block',
6267
'X-Content-Type-Options': 'nosniff',
6268
- 'Content-Security-Policy': "default-src 'none'; font-src 'self'; script-src 'self' 'unsafe-inline'" + extraScriptSrc + "; connect-src 'self'" + geourl + selfurl + "; img-src 'self' blob: data:" + geourl + " data:; style-src 'self' 'unsafe-inline'; frame-src 'self' mcrouter:" + extraFrameSrc + "; media-src 'self'; form-action 'self'"
6268
+ 'Content-Security-Policy': "default-src 'none'; font-src 'self'; script-src 'self' 'unsafe-inline'" + extraScriptSrc + "; connect-src 'self'" + geourl + selfurl + "; img-src 'self' blob: data:" + geourl + " data:; style-src 'self' 'unsafe-inline'; frame-src 'self' mcrouter:" + extraFrameSrc + "; media-src 'self'; form-action 'self'; manifest-src 'self'"
6269
};
6270
if (req.headers['user-agent'] && (req.headers['user-agent'].indexOf('Chrome') >= 0)) { headers['Permissions-Policy'] = 'interest-cohort=()'; } // Remove Google's FLoC Network, only send this if Chrome browser
6271
if ((parent.config.settings.allowframing !== true) && (typeof parent.config.settings.allowframing !== 'string')) { headers['X-Frame-Options'] = 'sameorigin'; }