From f77bce26e7a1b8ce4f2e6b42c4fd707a44596fd9 Mon Sep 17 00:00:00 2001 From: Tim Gates Date: Thu, 1 Sep 2022 20:40:16 +1000 Subject: [PATCH] docs: Fix a few typos There are small typos in: - security/middleware.py - security/models.py Fixes: - Should read `response` rather than `reponse`. - Should read `database` rather than `databse`. - Should read `confidential` rather than `confifendialt`. Signed-off-by: Tim Gates --- security/middleware.py | 6 +++--- security/models.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/security/middleware.py b/security/middleware.py index af50896..d441a0a 100644 --- a/security/middleware.py +++ b/security/middleware.py @@ -252,7 +252,7 @@ def load_setting(self, setting, value): def process_response(self, request, response): """ - Add X-XSS-Protection to the reponse header. + Add X-XSS-Protection to the response header. """ header = self.OPTIONS[self.option] response['X-XSS-Protection'] = header @@ -430,7 +430,7 @@ class NoConfidentialCachingMiddleware(BaseMiddleware): configured in ``NO_CONFIDENTIAL_CACHING`` dictionary in settings file with the following keys: - ``WHITELIST_ON`` all pages are confifendialt, except for pages + ``WHITELIST_ON`` all pages are confidential, except for pages explicitly whitelisted in ``WHITELIST_REGEXES`` ``WHITELIST_REGEXES`` list of regular expressions defining pages @@ -1362,7 +1362,7 @@ def load_setting(self, setting, value): def process_response(self, request, response): """ - Add Referrer-Policy to the reponse header. + Add Referrer-Policy to the response header. """ if self.option != 'off': header = self.option diff --git a/security/models.py b/security/models.py index 6eead9b..19803f6 100644 --- a/security/models.py +++ b/security/models.py @@ -64,7 +64,7 @@ class CspReport(models.Model): were fired against the user and this raises a question how the malicious code appeared on your website. - CSP reports are available in Django admin view. To be logged into databse, + CSP reports are available in Django admin view. To be logged into database, CSP reports view needs to be configured properly. See csp_report_ view for more information. Content Security Policy can be switched on for a web application using ContentSecurityPolicyMiddleware_ middleware.