wekan/server/policy.js

10 lines
271 B
JavaScript
Raw Normal View History

2018-07-27 18:08:09 +02:00
import { BrowserPolicy } from 'meteor/browser-policy-common';
Meteor.startup(() => {
const matomoUrl = process.env.MATOMO_ADDRESS;
if (matomoUrl){
BrowserPolicy.content.allowScriptOrigin(matomoUrl);
BrowserPolicy.content.allowImageOrigin(matomoUrl);
}
});