Nexory commented on code in PR #1880:
URL: https://github.com/apache/wicket/pull/1880#discussion_r4549560726
##########
wicket-core/src/main/java/org/apache/wicket/csp/CSPHeaderConfiguration.java:
##########
@@ -298,6 +350,8 @@ private CSPHeaderConfiguration recalculateState()
.flatMap(List::stream)
.anyMatch(value -> value == CSPDirectiveSrcValue.NONCE);
+ trustedTypesEnabled = contains(TRUSTED_TYPES,
TRUSTED_TYPES_POLICY);
Review Comment:
Done: `*` in `trusted-types` now counts as allowing the policy, with
`flagIsRenderedForWildcardPolicy` as the test. A header with
`require-trusted-types-for 'script'` and no `trusted-types` directive also
allows any policy and still gets no element. I left that case out, tell me if
it should count too.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]