The Open Source kanban (built with Meteor). Keep variable/table/field names camelCase. For translations, only add Pull Request changes to wekan/i18n/en.i18n.json , other translations are done at https://transifex.com/wekan/wekan only.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
import { BrowserPolicy } from 'meteor/browser-policy-common' ;
Meteor . startup ( ( ) => {
if ( process . env . BROWSER _POLICY _ENABLED === 'true' ) {
// Trusted URL that can embed Wekan in iFrame.
const trusted = process . env . TRUSTED _URL ;
BrowserPolicy . framing . disallow ( ) ;
//Allow inline scripts, otherwise there is errors in browser/inspect/console
//BrowserPolicy.content.disallowInlineScripts();
//BrowserPolicy.content.disallowEval();
//BrowserPolicy.content.allowInlineStyles();
//BrowserPolicy.content.allowFontDataUrl();
BrowserPolicy . framing . restrictToOrigin ( trusted ) ;
//BrowserPolicy.content.allowScriptOrigin(trusted);
}
else {
// Disable browser policy and allow all framing and including.
// Use only at internal LAN, not at Internet.
BrowserPolicy . framing . allowAll ( ) ;
//BrowserPolicy.content.allowDataUrlForAll();
}
// Allow all images from anywhere
//BrowserPolicy.content.allowImageOrigin('*');
// If Matomo URL is set, allow it.
const matomoUrl = process . env . MATOMO _ADDRESS ;
if ( matomoUrl ) {
//BrowserPolicy.content.allowScriptOrigin(matomoUrl);
//BrowserPolicy.content.allowImageOrigin(matomoUrl);
}
} ) ;