Set "content Security Policy" dynamically in play 2.5
<p>Play recommanded way to set the "content Security Policy" is to set the </p>

<pre><code>play.filters.headers.contentSecurityPolicy 
</code></pre>

<p>in the application.conf.</p>

<p>But my requirement is to set this dynamically in the code by reading some custom entries in a override configuration file. </p>

<p>Can some please suggest a way to set contentSecurityPolicy in Play programmatic by overriding the value play.filters.headers.contentSecurityPolicy in application.conf.</p>