Skip to content

Commit

Permalink
Load Stripe JS on VPN lead pages (Fixes #13527) (#13528)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexgibson authored Aug 15, 2023
1 parent 63842c4 commit acbb512
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 2 additions & 0 deletions bedrock/base/templates/base-protocol.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,8 @@

{% block js %}{% endblock %}

{% block third_party_js %}{% endblock %}

{% if self.structured_data()|trim|length %}
<script type="application/ld+json">
{% endif %}
Expand Down
4 changes: 4 additions & 0 deletions bedrock/products/templates/products/vpn/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,7 @@
{% block sub_navigation %}
{% include 'products/vpn/includes/subnav.html' %}
{% endblock %}

{% block third_party_js %}
<script async src="https://js.stripe.com/v3/"></script>
{% endblock %}
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,5 @@ <h2 class="resource-center-cta-title">{{ ftl('vpn-resource-center-obsessed-with'
{% endblock content %}

{% block js %}
{{ js_bundle("vpn-resource-center-article")}}
{{ js_bundle("vpn-resource-center-article") }}
{% endblock js %}
2 changes: 2 additions & 0 deletions bedrock/settings/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@
"data.track.convertexperiments.com",
"1003350.track.convertexperiments.com",
"1003343.track.convertexperiments.com",
"js.stripe.com",
]
_csp_style_src = [
# TODO fix things so that we don't need this
Expand All @@ -214,6 +215,7 @@
"accounts.firefox.com",
"accounts.firefox.com.cn",
"www.youtube.com",
"js.stripe.com",
]
_csp_connect_src = [
"www.googletagmanager.com",
Expand Down

0 comments on commit acbb512

Please sign in to comment.