//for the script
BrowserPolicy.content.allowScriptOrigin("*.google-analytics.com");
//for the tracking pixel
BrowserPolicy.content.allowImageOrigin("*.google-analytics.com");
// for cloudinary images
BrowserPolicy.content.allowImageOrigin("*.cloudinary.com");
// for bootstrap
BrowserPolicy.content.allowOriginForAll('*.bootstrapcdn.com');
// for facebook
BrowserPolicy.content.allowOriginForAll("*.facebook.net");
BrowserPolicy.content.allowOriginForAll("*.facebook.com");
BrowserPolicy.content.allowEval("*.facebook.com");
BrowserPolicy.content.allowEval("*.facebook.net");
// Need to run this at the end so that it overrides normal browser policy settings.
if (process.env.NODE_ENV === "development") {
console.log("In development mode. Allowing all framing so that mocha-web can run for tests.");
BrowserPolicy.framing.allowAll();
BrowserPolicy.content.allowOriginForAll("http://localhost:3000");
BrowserPolicy.content.allowOriginForAll("http://localhost:5000");
BrowserPolicy.content.allowConnectOrigin("ws://localhost:5000");
BrowserPolicy.content.allowConnectOrigin("ws://localhost:3000");
//BrowserPolicy.content.allowOriginForAll("*");
} else {
var rootUrl = __meteor_runtime_config__.ROOT_URL;
console.log("ROOT_URL " + rootUrl);
BrowserPolicy.content.allowConnectOrigin(rootUrl);
BrowserPolicy.content.allowConnectOrigin(rootUrl.replace('http', 'ws'));
}
});
On my dev box it outputs (just reformatted to be easy to read):
default-src 'self' http://*.bootstrapcdn.com https://*.bootstrapcdn.com http://*.facebook.net https://*.facebook.net http://*.facebook.com https://*.facebook.com http://localhost:3000 http://localhost:5000; script-src 'self' 'unsafe-inline' http://*.google-analytics.com https://*.google-analytics.com http://*.bootstrapcdn.com https://*.bootstrapcdn.com http://*.facebook.net https://*.facebook.net http://*.facebook.com https://*.facebook.com 'unsafe-eval' http://localhost:3000 http://localhost:5000; connect-src * 'self' http://*.bootstrapcdn.com https://*.bootstrapcdn.com http://*.facebook.net https://*.facebook.net http://*.facebook.com https://*.facebook.com http://localhost:3000 http://localhost:5000 ws://localhost:5000 ws://localhost:3000; img-src data: 'self' http://*.google-analytics.com https://*.google-analytics.com http://*.cloudinary.com https://*.cloudinary.com http://*.bootstrapcdn.com https://*.bootstrapcdn.com http://*.facebook.net https://*.facebook.net http://*.facebook.com https://*.facebook.com http://localhost:3000 http://localhost:5000; style-src 'self' 'unsafe-inline' http://*.bootstrapcdn.com https://*.bootstrapcdn.com http://*.facebook.net https://*.facebook.net http://*.facebook.com https://*.facebook.com http://localhost:3000 http://localhost:5000;
Many thanks for looking at this long post.Marc
--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/3e7f63cd-cf4b-4249-bdf5-049bd3c2764a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/CANQB4m%3DQNa_qnVYD1O5aS5panJ0bDgCB8yC8YK1OJACWDPp6qA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/C79E5EF8-B5E0-4FF4-A2F2-134CBB4287AE%40sqwrl.com.
meteor add xolvio:cucumber=> Errors while adding packages:While building package velocity:test-proxy:error: File not found: tests/mocha/server/sampleServerTest.jserror: File not found: tests/mocha/client/sampleClientTest.js
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/CANQB4mnGkD_O9sBcub%3DefgvMGq1q6T2EKPs9FHJZAvHnGapauA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/B4255886-EC04-4E51-A592-56416AE4069C%40sqwrl.com.