csp
Add the CSP nonce to the context.
def csp(
request: HttpRequest
) - > dict
Add the CSP nonce to the context.
Parameters
| Name | Type | Description |
|---|---|---|
| request | HttpRequest | The incoming HTTP request object used to retrieve or generate the security nonce. |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing the Content Security Policy (CSP) nonce associated with the specific request key. |