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
Post a Comment