You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by so...@apache.org on 2020/02/12 09:03:26 UTC

[wicket] branch master updated: [WICKET-6727] nonce attribute should be copied

This is an automated email from the ASF dual-hosted git repository.

solomax pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/wicket.git


The following commit(s) were added to refs/heads/master by this push:
     new 7ca1a4e  [WICKET-6727] nonce attribute should be copied
7ca1a4e is described below

commit 7ca1a4edf4f7294f55d67e424a225d293975590d
Author: Maxim Solodovnik <so...@gmail.com>
AuthorDate: Wed Feb 12 16:03:12 2020 +0700

    [WICKET-6727] nonce attribute should be copied
---
 .../src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js   | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
index 86cf3e8..3ee9f3b 100644
--- a/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
+++ b/wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-ajax-jquery.js
@@ -1852,6 +1852,8 @@
 
 						// copy id attribute
 						style.id = node.getAttribute("id");
+						// copy nonce attribute
+						style.nonce = node.getAttribute("nonce");
 
 						var textNode = document.createTextNode(content);
 						style.appendChild(textNode);