[ 
https://issues.apache.org/jira/browse/WICKET-6806?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167518#comment-17167518
 ] 

Sven Meier commented on WICKET-6806:
------------------------------------

Hi [~bitstorm] ,

your bug application seems not to be complete, but I noticed that the resource 
decorators are set up with two resource aggregators:
{code:java}
getHeaderResponseDecorators().add(response -> new ResourceAggregator(
 new JavaScriptFilteredIntoFooterHeaderResponse(response, "scripts")));{code}
That ResourceAggregator does not belong there - since [~papegaaij]'s changes 
you do not have to take care of resource aggregation anymore, just call #add() 
with the additional decorator:
{code:java}
getHeaderResponseDecorators().add(response -> 
 new JavaScriptFilteredIntoFooterHeaderResponse(response, "scripts"));{code}
Can you try that please? Here the footer items appear as expected. 

 

> CSP header response decorator breaks 
> JavaScriptFilteredIntoFooterHeaderResponse 
> --------------------------------------------------------------------------------
>
>                 Key: WICKET-6806
>                 URL: https://issues.apache.org/jira/browse/WICKET-6806
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 9.0.0
>            Reporter: Andrea Del Bene
>            Priority: Major
>             Fix For: 9.1.0
>
>         Attachments: spring-bug.tar.xz
>
>
> CSP header response decorator seems to prevent header items to be rendered 
> when we use JavaScriptFilteredIntoFooterHeaderResponse to put them inside 
> body tag. See quickstart.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to