Browse Source

static require cryptofill for Edge

Danny Coates 6 years ago
parent
commit
c146c584f6
2 changed files with 1 additions and 3 deletions
  1. 1 1
      app/capabilities.js
  2. 0 2
      server/routes/index.js

+ 1 - 1
app/capabilities.js

@@ -46,7 +46,7 @@ async function checkCrypto() {
     return true;
   } catch (err) {
     try {
-      await import('./cryptofill');
+      require('./cryptofill');
       return true;
     } catch (e) {
       return false;

+ 0 - 2
server/routes/index.js

@@ -54,8 +54,6 @@ module.exports = function(app) {
               return `'nonce-${req.cspNonce}'`;
             }
           ],
-          styleSrc: ["'self'", 'https://code.cdn.mozilla.net'],
-          fontSrc: ["'self'", 'https://code.cdn.mozilla.net'],
           formAction: ["'none'"],
           frameAncestors: ["'none'"],
           objectSrc: ["'none'"],