Merge branch 'wekan:master' into master

This commit is contained in:
TheExo 2022-04-07 12:02:46 +02:00 committed by GitHub
commit 12c9317e15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
22 changed files with 95 additions and 58 deletions

View file

@ -1,6 +1,13 @@
import { BrowserPolicy } from 'meteor/browser-policy-common';
Meteor.startup(() => {
// Default allowed
BrowserPolicy.content.allowInlineScripts();
BrowserPolicy.content.allowEval();
BrowserPolicy.content.allowInlineStyles();
BrowserPolicy.content.allowSameOriginForAll();
if (process.env.BROWSER_POLICY_ENABLED === 'true') {
// Trusted URL that can embed Wekan in iFrame.
const trusted = process.env.TRUSTED_URL;