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

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

commit 3d5e1de250d96e2307964ca6a4f2b6cec211f7d8
Author: Sven Meier <[email protected]>
AuthorDate: Thu Oct 15 21:15:47 2020 +0200

    enable clirr
    
    readded overriden CsrfPreventionRequestCycleListener#addAcceptedOrigin
---
 pom.xml                                                       |  2 --
 .../protocol/http/CsrfPreventionRequestCycleListener.java     | 11 +++++++++++
 2 files changed, 11 insertions(+), 2 deletions(-)

diff --git a/pom.xml b/pom.xml
index c014b46..89f88e0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1133,8 +1133,6 @@
                                                
<comparisonVersion>9.0.0</comparisonVersion>
                                                <failOnError>true</failOnError>
                                                <logResults>true</logResults>
-                                               <!-- Disable until Wicket 9.0.0 
-->
-                                               <skip>true</skip>
                                        </configuration>
                                        <executions>
                                                <execution>
diff --git 
a/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
 
b/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
index a259fb1..f8a7c28 100644
--- 
a/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
+++ 
b/wicket-core/src/main/java/org/apache/wicket/protocol/http/CsrfPreventionRequestCycleListener.java
@@ -169,6 +169,17 @@ public class CsrfPreventionRequestCycleListener extends 
OriginResourceIsolationP
        private String errorMessage = "Origin does not correspond to request";
 
        /**
+        * TODO remove in Wicket 10
+        */
+       @Override
+       public CsrfPreventionRequestCycleListener addAcceptedOrigin(String 
acceptedOrigin)
+       {
+               super.addAcceptedOrigin(acceptedOrigin);
+               
+               return this;
+       }
+
+       /**
         * Sets the action when no Origin header is present in the request. 
Default {@code ALLOW}.
         *
         * @param action

Reply via email to