add pricing table to csp

This commit is contained in:
Blake Erickson 2024-04-24 11:18:47 -06:00
parent c48cbc7071
commit d6c4ec21ae
1 changed files with 1 additions and 1 deletions

View File

@ -25,7 +25,7 @@ register_html_builder("server:before-head-close") do
'<script async src="https://js.stripe.com/v3/pricing-table.js"></script>' '<script async src="https://js.stripe.com/v3/pricing-table.js"></script>'
end end
extend_content_security_policy(script_src: %w[https://js.stripe.com/v3/ https://hooks.stripe.com]) extend_content_security_policy(script_src: %w[https://js.stripe.com/v3/ https://hooks.stripe.com https://js.stripe.com/v3/pricing-table.js])
add_admin_route "discourse_subscriptions.admin_navigation", "discourse-subscriptions.plans" add_admin_route "discourse_subscriptions.admin_navigation", "discourse-subscriptions.plans"