Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/django/django
/ get_nonce
Function
get_nonce
django/middleware/csp.py:6–7 ·
view source on GitHub ↗
(request)
Source
from the content-addressed store, hash-verified
4
5
6
def
get_nonce(request):
7
return
getattr(request,
"_csp_nonce"
, None)
8
9
10
class
ContentSecurityPolicyMiddleware(MiddlewareMixin):
Callers
3
csp
Function · 0.90
csp_nonce
Function · 0.90
process_response
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected