reiern70 commented on PR #567:
URL: https://github.com/apache/wicket/pull/567#issuecomment-1495732184

   > > In our case init parameter of servlet context will be enough :))
   > 
   > If Wicket won't set this value into some **Settings bean then there is 
nothing to do here. The application can set the extra init-param in its 
web.xml/annotation and read it from the ServletContext.
   
   Yes... but then for all the AjaxDonwloadBehaviors you will need to:
   
   1. Read this parameter 
   2. Adapt your code to do `ajaxDonwloadBehavior.setAttribute("SameSite", 
"What you read from parameter");
   
   @solomax 
   
   You can allways roll you own AjaxDonwloadBehavior and do
   
   ```
   class MyAjaxDonwloadBehavior extends AjaxDonwloadBehavior {
   
        MyAjaxDonwloadBehavior(IResource resource) {
          super (resource);
          setSameSite("read it from somewhere");
        }
   }
   ```
   
   But I stilll see the value of fixing some site without tocuhing your code 
(mind that for wicket 9.x you still will need to configure application server 
to decorate cookies).


-- 
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: commits-unsubscr...@wicket.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to