wekan/server/policy.js
2018-07-27 18:08:09 +02:00

9 lines
271 B
JavaScript

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);
}
});