This commit is contained in:
forest 2020-05-22 15:31:53 -05:00
parent 9164250d4d
commit 2b0ff06ec8

View File

@ -187,8 +187,7 @@ def redirect_to_stripe(stripe_checkout_session_id):
stripe_public_key=current_app.config["STRIPE_PUBLISHABLE_KEY"] stripe_public_key=current_app.config["STRIPE_PUBLISHABLE_KEY"]
)) ))
if stripe_checkout_session_id is not None: response.headers['Content-Security-Policy'] = "default-src 'self' https://js.stripe.com"
response.headers['Content-Security-Policy'] = "default-src 'self' https://js.stripe.com"
return response return response