Skip to content

Commit

Permalink
Fix incorrect domain from csp replace example
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbeith authored and stevejalim committed Jun 28, 2024
1 parent eb2f052 commit b0a5e45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/decorators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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"}, REPORT_ONLY=True)
@csp_replace({"img-src": "cdn-img2.com"}, REPORT_ONLY=True)
def myview(request):
return render(...)
Expand Down

0 comments on commit b0a5e45

Please sign in to comment.