Hi Everyone,
I’m trying to modify the following HTTP header on my instance of Greenbone Security Assistant Daemon.
- Remove script-src unsafe-inline CSP Header
- Remove style-src unsafe-inline CSP Header
- Set Cross-Origin-Embedder-Policy Header
- Set Cross-Origin-Opener-Policy Header
What i’ve tried:
To remove the unsafe-inline CSP Header, I’ve tried adding “–http-csp=“default-src ‘self’ ‘unsafe-inline’; img-src ‘self’ blob:; frame-ancestors ‘self’”", however it result in the GSAD Web interface being unable to be load (it only shows a blank screen”
Questions:
-
Is it feasible to set those modification in GSAD (i’m doing it to resolve some findings from Security Scanner) ?
-
What’s the recommended way to implement the modification?
-
Are there any existing implementations or examples that I can refer to?
Any suggestions or guidance would be greatly appreciated!