Setting Content Security Policy headers (CSP)

I got everything working implementing Security Policy Headers (CSP) by following:

However, when I try to add a nonce to the html by <script nonce="{{ csp_nonce() }}">, the browser shows up with an empty string (where the nonce should be generated), i.e. <script nonce="">.

Is there a special statamic-way of calling {{ csp_nonce() }} method in the antlers HTML view?

>>>>>>> Unanswered <<<<<<<
3 Replies