Skip to content

Commit ae16f98

Browse files
authored
Merge pull request #95 from timgates42/bugfix_typos
docs: Fix a few typos
2 parents c7d59b4 + f77bce2 commit ae16f98

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

security/middleware.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ def load_setting(self, setting, value):
252252

253253
def process_response(self, request, response):
254254
"""
255-
Add X-XSS-Protection to the reponse header.
255+
Add X-XSS-Protection to the response header.
256256
"""
257257
header = self.OPTIONS[self.option]
258258
response['X-XSS-Protection'] = header
@@ -430,7 +430,7 @@ class NoConfidentialCachingMiddleware(BaseMiddleware):
430430
configured in ``NO_CONFIDENTIAL_CACHING`` dictionary in settings file with
431431
the following keys:
432432
433-
``WHITELIST_ON`` all pages are confifendialt, except for pages
433+
``WHITELIST_ON`` all pages are confidential, except for pages
434434
explicitly whitelisted in ``WHITELIST_REGEXES``
435435
436436
``WHITELIST_REGEXES`` list of regular expressions defining pages
@@ -1362,7 +1362,7 @@ def load_setting(self, setting, value):
13621362

13631363
def process_response(self, request, response):
13641364
"""
1365-
Add Referrer-Policy to the reponse header.
1365+
Add Referrer-Policy to the response header.
13661366
"""
13671367
if self.option != 'off':
13681368
header = self.option

security/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class CspReport(models.Model):
6464
were fired against the user and this raises a question how the malicious
6565
code appeared on your website.
6666
67-
CSP reports are available in Django admin view. To be logged into databse,
67+
CSP reports are available in Django admin view. To be logged into database,
6868
CSP reports view needs to be configured properly. See csp_report_
6969
view for more information. Content Security Policy can be switched
7070
on for a web application using ContentSecurityPolicyMiddleware_ middleware.

0 commit comments

Comments
 (0)