From ed0b7a4643bf68f0c69d6032f12ab0df8e106966 Mon Sep 17 00:00:00 2001 From: jcari-dev <582119jc@gmail.com> Date: Wed, 10 Jul 2024 10:33:40 -0400 Subject: [PATCH] fixed typos in configuration.rst and decorators.rst --- docs/configuration.rst | 2 +- docs/decorators.rst | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/configuration.rst b/docs/configuration.rst index c226591..f37de21 100644 --- a/docs/configuration.rst +++ b/docs/configuration.rst @@ -30,7 +30,7 @@ All configuration of django-csp is done in your Django settings file with the ``CONTENT_SECURITY_POLICY`` setting or the ``CONTENT_SECURITY_POLICY_REPORT_ONLY`` setting. Each of these settings expects a dictionary representing a policy. -The ``CONTENT_SECURITY_POLICY`` setting is your enforcable policy. +The ``CONTENT_SECURITY_POLICY`` setting is your enforceable policy. The ``CONTENT_SECURITY_POLICY_REPORT_ONLY`` setting is your report-only policy. This policy is used to test the policy without breaking the site. It is useful when setting this policy to be diff --git a/docs/decorators.rst b/docs/decorators.rst index c387e05..2bdaab6 100644 --- a/docs/decorators.rst +++ b/docs/decorators.rst @@ -58,7 +58,7 @@ settings. If there is no setting, the value passed to the decorator will be used default-src 'self'; img-src imgsrv.com The arguments to the decorator are the same as the :ref:`settings `. The -decorator excpects a single dictionary argument, where the keys are the directives and the values +decorator expects a single dictionary argument, where the keys are the directives and the values are either strings, lists or tuples. An optional argument, ``REPORT_ONLY``, can be set to ``True`` to update the report-only policy instead of the enforced policy.