Skip to content

Commit eb2f052

Browse files
jamesbeithstevejalim
authored andcommitted
Add missing report-only from csp replace example
1 parent 45cb61a commit eb2f052

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/decorators.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ The arguments and values are the same as ``@csp_update``:
100100
101101
102102
# Will allow images only from cdn-img2.com in the report-only policy.
103-
@csp_replace({"img-src": "imgsrv2.com"})
103+
@csp_replace({"img-src": "imgsrv2.com"}, REPORT_ONLY=True)
104104
def myview(request):
105105
return render(...)
106106

0 commit comments

Comments
 (0)