Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Draft
- Add nonce to all script tags [#2539](https://github.com/bigcommerce/cornerstone/pull/2539)

## 6.16.1 (02-14-2025)
- Refactor cart, payment account page inline event handlers to event listeners [#2536](https://github.com/bigcommerce/cornerstone/pull/2536)
Expand Down
2 changes: 1 addition & 1 deletion templates/components/products/schema.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script type="application/ld+json">
<script type="application/ld+json" nonce="{{nonce}}">
{
"@context": "https://schema.org/",
"@type": "Product",
Expand Down
2 changes: 1 addition & 1 deletion templates/pages/account/orders/invoice.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ <h2 class="InvoiceHeading">{{lang 'invoice.order_items'}}</h2>
</div>
</div>
</div>
<script>
<script nonce="{{nonce}}">
window.print();
</script>
{{/partial}}
Expand Down
2 changes: 1 addition & 1 deletion templates/pages/order-confirmation.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{{ stylesheet '/assets/css/optimized-checkout.css' }}}
{{ getFontsCollection }}

<script type="text/javascript">
<script type="text/javascript" nonce="{{nonce}}">
window.language = {{{langJson 'optimized_checkout'}}};
</script>

Expand Down
2 changes: 1 addition & 1 deletion templates/pages/subscribed.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h1 class="page-heading" tabindex="0" role="status" aria-live="assertive">
</div>
</section>

<script>
<script nonce="{{nonce}}">
const subscriptionStatusElement = document.querySelector('.page-content > .page-heading');
if (subscriptionStatusElement) subscriptionStatusElement.focus();
</script>
Expand Down