Skip to content

[9.x] Add nonce for preloaded assets#44747

Merged
taylorotwell merged 3 commits into
laravel:9.xfrom
joostdebruijn:fix/missing-nonce-for-preloaded-assets
Oct 27, 2022
Merged

[9.x] Add nonce for preloaded assets#44747
taylorotwell merged 3 commits into
laravel:9.xfrom
joostdebruijn:fix/missing-nonce-for-preloaded-assets

Conversation

@joostdebruijn

Copy link
Copy Markdown
Contributor

In #44096 support for preloading is added. However, the preloaded assets don't have the nonce attribute set, which breaks certain CSP-policies (for example when using strict-dynamic for scripts). This PR adds the nonce (if set) for preloaded assets.

@taylorotwell taylorotwell merged commit 2794f81 into laravel:9.x Oct 27, 2022
@joostdebruijn joostdebruijn deleted the fix/missing-nonce-for-preloaded-assets branch October 27, 2022 13:37
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.

3 participants