Skip to content

Commit

Permalink
fixed typos in configuration.rst and decorators.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
jcari-dev authored and stevejalim committed Jul 10, 2024
1 parent 153696e commit ed0b7a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/decorators.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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 <configuration-chapter>`. 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.

Expand Down

0 comments on commit ed0b7a4

Please sign in to comment.