diff options
author | Justin Reynolds <justinr1234@gmail.com> | 2019-06-28 12:52:09 -0500 |
---|---|---|
committer | Justin Reynolds <justinr1234@gmail.com> | 2019-06-28 12:56:51 -0500 |
commit | 3eb4d2c341b712268bd321173909e0a7b19a88c9 (patch) | |
tree | 25a8fcb088f3984e72a5bd3ded9e6a45376e0693 /server/policy.js | |
parent | a0a482aa8efb3255a523de4524c8e09453d5571f (diff) | |
download | wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.gz wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.tar.bz2 wekan-3eb4d2c341b712268bd321173909e0a7b19a88c9.zip |
Prettier & eslint project style update
Diffstat (limited to 'server/policy.js')
-rw-r--r-- | server/policy.js | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/server/policy.js b/server/policy.js index 02a42cd4..a8c33a05 100644 --- a/server/policy.js +++ b/server/policy.js @@ -1,8 +1,7 @@ import { BrowserPolicy } from 'meteor/browser-policy-common'; Meteor.startup(() => { - - if ( process.env.BROWSER_POLICY_ENABLED === 'true' ) { + if (process.env.BROWSER_POLICY_ENABLED === 'true') { // Trusted URL that can embed Wekan in iFrame. const trusted = process.env.TRUSTED_URL; BrowserPolicy.framing.disallow(); @@ -13,8 +12,7 @@ Meteor.startup(() => { //BrowserPolicy.content.allowFontDataUrl(); BrowserPolicy.framing.restrictToOrigin(trusted); //BrowserPolicy.content.allowScriptOrigin(trusted); - } - else { + } else { // Disable browser policy and allow all framing and including. // Use only at internal LAN, not at Internet. BrowserPolicy.framing.allowAll(); @@ -26,9 +24,8 @@ Meteor.startup(() => { // If Matomo URL is set, allow it. const matomoUrl = process.env.MATOMO_ADDRESS; - if (matomoUrl){ + if (matomoUrl) { //BrowserPolicy.content.allowScriptOrigin(matomoUrl); //BrowserPolicy.content.allowImageOrigin(matomoUrl); } - }); |