Skip to content

Conversation

@pvaladez
Copy link
Contributor

@pvaladez pvaladez commented Apr 10, 2025

What?

Add missing nonce="{{nonce}}" nonces to all script tags.

Adds to nonces to following files:

  • templates/pages/account/orders/invoice.html
  • templates/pages/order-confirmation.html
  • templates/components/products/schema.html
  • templates/pages/subscribed.html

Requirements

  • CHANGELOG.md entry added (required for code changes only)

Tickets / Documentation

n/a

Screenshots (if appropriate)

n/a

@pvaladez
Copy link
Contributor Author

I had initially assumed that the nonce-enforcing CSP policy would be applied for all pages, site-wide. However, after testing it, it looks the CSP header is only set on the checkout page.

Still, I suppose it doesn't hurt to have the nonce handlebars there just in case nonces are enforced site-wide in the future.

@Tiggerito
Copy link
Contributor

I have done the same. The nonce is blank on other pages, and this does not seem to cause any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants