There is 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-527697f9-4553-4144-9442-089eebbe6052 XWIKI-21379 Open

Allow users to set thier own Content-Security-Policy header

 
View issue   ยท   Add comment
 

1 comment

 
cid:jira-generated-image-avatar-80537586-02c6-47de-aa52-9b18a1768038 Nikita Petrenko on 26/May/25 19:16
 

Adding as useful link. regarding CSP.

I think there is nothing XWiki can do about that.

I agree that XWiki can't do it. As CSP either defined by Apache in

httpd.conf
Header set Content-Security-Policy-Report-Only "default-src 'self'; img-src *"

or in NGINX inside

server { }

block

add_header Content-Security-Policy "default-src 'self';";

We can close this issue as invalid and document an example in both pages: