Skip to content

Commit 92ad3c3

Browse files
committed
Add a comment about the csp_nonce() Twig function
1 parent 4c518f0 commit 92ad3c3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

frontend/asset_mapper.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1079,6 +1079,7 @@ it in the CSP header, and then pass the same nonce to the Twig function:
10791079

10801080
.. code-block:: twig
10811081
1082+
{# the csp_nonce() function is defined by the NelmioSecurityBundle #}
10821083
{{ importmap('app', {'nonce': csp_nonce('script')}) }}
10831084
10841085
The AssetMapper Component Caching System in dev

0 commit comments

Comments
 (0)