Skip to content

Conversation

@keesvandieren
Copy link
Contributor

Those new directives have been added to CSP in 2022 but are not yet available in Wicket

@keesvandieren keesvandieren changed the title Add support for script-src-attr, style-src-attr Extend CSP with support for script-src-attr, style-src-attr Dec 31, 2025
Copy link
Member

@martin-g martin-g left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a JIRA ticket for the changelog.

}

@Test
void scriptSrcAttrAndStyleSrcAttributesOnlySupportNoneAndUnsafeInline() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test could be improved by iterating over all values of CSPDirectiveSrcValue and depending on the value assert that it either throws or passes. I.e. only NONE and UNSAFE_INLINE should pass.

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