pedestal

Ahmed Hassan 2019-05-28T06:25:59.002800Z

How do I tweak Content Security Policy in Pedestal?

souenzzo 2019-05-28T08:36:04.003300Z

Inside service-map

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

✔️ 1
souenzzo 2019-05-28T08:45:15.004800Z

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

Ahmed Hassan 2019-05-28T08:53:05.005600Z

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

souenzzo 2019-05-28T08:56:03.006100Z

Yep. Choose one method (headers or meta-tags). https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta#attr-http-equiv

🙂 1