GUI : Content Security Policy violation #907
Replies: 4 comments 1 reply
-
Trying with * instead of none, but same behaviour : not taken in account... Is this file or parameters embedded in ear file or located in another place ? |
Beta Was this translation helpful? Give feedback.
-
A WAF should not force the application behind it to loosen security configuration should it? There's good reason for using "self". You can easily check when EJBCA responds with using your browser, when accessing it directly. When changing web.properties you have to rebuild and redeploy. |
Beta Was this translation helpful? Give feedback.
-
Hello Tomas, thanks for your quick feedback, |
Beta Was this translation helpful? Give feedback.
-
Again (only on some GUI admin buttons) : => 'https://pki-admin.test.gemalto.com:8443/ejbca/adminweb/ra/editendentityprofiles/editendentityprofiles.xhtml' : REFUSED Disabling "form-action 'self'" CSP Please tell me how to do this configuration working.. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Because using a WAF in front of EJBCA service then domain name change and when I try on the GUI to edit a RA profile (and only from this form) I got this browser console CPS error :
Refused to send form data to 'https://pki-admin.test.gemalto.com:8443/ejbca/adminweb/ra/editendentityprofiles/editendentityprofiles.xhtml' because it violates the following Content Security Policy directive: "form-action 'self'".
So I tried to put in ejbca/conf a web.properties file containing :
web.header.content_security_policy=default-src 'none'; style-src 'none' 'unsafe-inline'; script-src 'none' 'unsafe-inline' 'unsafe-eval'; img-src 'none'; frame-src 'none'; font-src 'none'; connect-src 'none'; form-action 'none'
But error is still there...
What can I do..?
Beta Was this translation helpful? Give feedback.
All reactions