MCPcopy
hub / github.com/django/django / csp_nonce

Function csp_nonce

tests/middleware/views.py:30–31  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

28
29
30def csp_nonce(request):
31 return HttpResponse(get_nonce(request))
32
33
34@csp_override({})

Callers

nothing calls this directly

Calls 2

HttpResponseClass · 0.90
get_nonceFunction · 0.90

Tested by

no test coverage detected