From eb2f052639b327fafcbb60a11f8ac8d94094de91 Mon Sep 17 00:00:00 2001 From: James Beith Date: Fri, 28 Jun 2024 22:47:42 +1000 Subject: [PATCH] Add missing report-only from csp replace example --- docs/decorators.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/decorators.rst b/docs/decorators.rst index 5d3091a..7ebbece 100644 --- a/docs/decorators.rst +++ b/docs/decorators.rst @@ -100,7 +100,7 @@ The arguments and values are the same as ``@csp_update``: # Will allow images only from cdn-img2.com in the report-only policy. - @csp_replace({"img-src": "imgsrv2.com"}) + @csp_replace({"img-src": "imgsrv2.com"}, REPORT_ONLY=True) def myview(request): return render(...)