<html xmlns:wicket="http://wicket.apache.org" xml:lang="en" lang="en">
<head>
<title>CSP Nonce Demo</title>
</head>
<body>
<wicket:extend>
<h3>CSP Nonce Demo</h3>
<p>This example demonstrates the CSP protection offered by Wicket. In a modern browser, you will see 2 reports sent back to the application about CSP violations.</p>
<div wicket:id="testNonceScript" class="test-nonce-script"></div>
<div wicket:id="testNoNonceScript" class="test-no-nonce-script"></div>
<div class="injected-style"><wicket:message key="styleInjectionContainer"/></div>
<div class="injected-style--with-nonce"><wicket:message key="styleInjectionContainerWithNonce"/></div>
<p></p>
<button wicket:id="clickMe"><wicket:message key="clickMe" /></button>
<div class="click-me-text">Click a button above to replace this text</div>
<div wicket:id="blacktext">This text will stay black even though color:red is added by the button above</div>
<div><wicket:message key="clickMeCount" /> <span wicket:id="clickMeCount"></span></div>
<p></p>
<div wicket:id="delayedVisible" class="delayed-visible">This delayed shown text should be green and bold</div>
<p></p>
<p><wicket:message key="ieDisclaimer"/></p>
<script>document.querySelector(".test-no-nonce-script").innerHTML = "This is text injected by no nonce script: fail";</script>
<style>
.injected-style {
color: red;
font-weight: bold;
}
</style>
</wicket:extend>
</body>
</html>