How to user Browser Policy in Meteor 1.3-rc.12 [SOLVED]


#1

I have browser policy code loading from the server in security.js when the app loads.

import { BrowserPolicy } from 'meteor/browser-policy';


BrowserPolicy.framing.disallow();
BrowserPolicy.content.disallowInlineScripts();
BrowserPolicy.content.disallowEval();

But I am getting error in my server console:

TypeError: Cannot read property 'framing' of undefined
W20160325-00:00:13.739(-5)? (STDERR) at meteorInstall.imports.startup.server.security.js

I saw this github issue says it is solved. https://github.com/meteor/meteor/issues/6539

Anyone have some advice on this error?


#2

There is no need for an import.


#3

In order to import it you need to use browser-policy-common
take a look at https://github.com/meteor/docs/issues/16