$kirby->nonce()
Returns the nonce, which is used in the panel for inline scripts
Return type
string
Parent class
Example
The method generates a nonce that you can use in your inline scripts in conjuction with the Content Security Policy of your website.
You can also use it to configure a custom content security policy for your site and/or the panel.