diff --git a/capsulflask/payment.py b/capsulflask/payment.py index e5f2275..feed458 100644 --- a/capsulflask/payment.py +++ b/capsulflask/payment.py @@ -187,8 +187,7 @@ def redirect_to_stripe(stripe_checkout_session_id): 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