javascript - Meteor mrgalaxy:stripe package not loading content security policy -


i'm trying use stripe meteor create customer , charge customer, , added mrgalaxy:stripe. i'm following tutorial: http://themeteorchef.com/recipes/building-a-saas-with-meteor-stripe-part-1/. after starting meteor, following errors:

refused load script 'https://js.stripe.com/v2/' because violates following content security policy directive: "script-src 'self' 'unsafe-inline'".  refused load script 'https://checkout.stripe.com/checkout.js' because violates following content security policy directive: "script-src 'self' 'unsafe-inline'".  uncaught referenceerror: stripe not defined 

is there workaround manifest.json? if so, should located, should like, , how read in?

i able fix changing app/server/startup.js from:

meteor.startup( () => modules.server.startup() ); 

to:

meteor.startup( () => {   browserpolicy.content.alloworiginforall("https://js.stripe.com/")   browserpolicy.content.alloworiginforall("https://checkout.stripe.com/") }) 

the helpful references come solution were:


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -