- Issue created by @mstrelan
- Status changed to Needs work
7 months ago 1:18am 29 August 2024 - 🇨🇦Canada gapple
Thanks for testing out the new feature :)
That looks right. IIRC,
hook_page_attachments
is called after the page contents are rendered and all the metadata is bubbled up. html_head is then rendered separately by the attachments processor without bubbling.----
Won't be an issue until something else uses
csp_nonce
with a fallback that's not'unsafe-inline'
, but the fallback value should be an array so it can be merged.
$attachments['#attached']['csp_nonce']['script'][] = Csp::POLICY_UNSAFE_INLINE;
- Status changed to Closed: works as designed
7 months ago 12:10am 6 September 2024