mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
* browser-policy uses browser-policy-framing and browser-policy-content, both of which set default policies when they are used. This way you get a default policy when you add a browser policy package, but you can pick and choose different packages if you only want to think about one of them. * The two packages use different namespaces: BrowserPolicy.framing and BrowserPolicy.content, which meant some functions got renamed (e.g. not using "framing" or "content in the function name when it's already in the namespace).
14 lines
403 B
JavaScript
14 lines
403 B
JavaScript
Package.describe({
|
|
summary: "Configure security policies enforced by the browser"
|
|
});
|
|
|
|
Package.on_use(function (api) {
|
|
api.use(['browser-policy-content', 'browser-policy-framing'], 'server');
|
|
api.imply(['browser-policy-common'], 'server');
|
|
});
|
|
|
|
Package.on_test(function (api) {
|
|
api.use(["tinytest", "browser-policy", "ejson"], "server");
|
|
api.add_files("browser-policy-test.js", "server");
|
|
});
|