andruhon commented on a change in pull request #376: WICKET-6682 add CSP nonce
support: DecoratingHeaderResponse approach
URL: https://github.com/apache/wicket/pull/376#discussion_r303427180
##########
File path:
wicket-core/src/main/java/org/apache/wicket/markup/head/CssHeaderItem.java
##########
@@ -365,6 +382,27 @@ protected final void internalRenderCSSReference(Response
response, String url, S
response.write("\n");
}
+ /**
+ * @return CSP nonce
+ */
+ public String getNonce()
+ {
+ return nonce;
+ }
+
+ /**
+ * Set the CSP nonce
+ *
+ * @param nonce
+ * @return {@code this} object, for method chaining
+ */
+ public CssHeaderItem setNonce(String nonce)
+ {
+ Args.notEmpty(nonce, "nonce");
Review comment:
My idea was, that it's a special security attribute, and you don't really
want to erase it. So, that's why I wanted it to explode.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services