.. include:: ../../Includes.txt csp:script ========== With the script ViewHelper you can add javascript code blocks to your fluid template. In the background the script will be trimmed and compressed and a hash or nonce value will be registered in the content security policy header. .. attention:: The extension favours **hash** over **nonce** because it checks the content of the script also. Properties ---------- hashMethod ~~~~~~~~~~ :aspect:`Variable type` String :aspect:`Description` This option decides which hash algorithm to use. Possible values: sha256, sha384, sha512. This is ignored if the script method is set to "nonce". See by the "Extension settings". :aspect:`Default value` sha256 :aspect:`Mandatory` No Examples -------- :: alert("It works.");