Fork me on GitHub
#pedestal
<
2019-05-28
>
Ahmed Hassan06:05:59

How do I tweak Content Security Policy in Pedestal?

souenzzo08:05:04

Inside service-map

::http/port 8080
::http/secure-headers {:content-security-policy-settings content-security-policy-settings}
...

✔️ 4
souenzzo08:05:15

docs aren't awesome, but you can checkout the sources. it's just a bunch of string concat/join

Ahmed Hassan08:05:05

So, If I have set up http/secure-headers in service-map I do not need to include <meta http-equiv="Content-Security-Policy" content="default-src ; child-src 'none'; object-src 'none'"> Tag in html. Right?