title: How Can I Write to response headers with Thymeleaf
body: <p>I'm just trying out Spring boot, and with that I have simple test JSP-page I'd like to convert to thymeleaf. The JSP has a top page directive that sets a response header. How Can I do the same thing in thymeleaf?</p>
  
  <pre><code>Index.jsp
  
      &lt;%
          response.setHeader("Content-Security-Policy-Report-Only", "default-src 'self');
      %&gt; 
  </code></pre>