Skip to content

Commit

Permalink
Merge pull request #95 from timgates42/bugfix_typos
Browse files Browse the repository at this point in the history
docs: Fix a few typos
  • Loading branch information
funkaoshi authored Sep 1, 2022
2 parents c7d59b4 + f77bce2 commit ae16f98
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions security/middleware.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion security/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit ae16f98

Please sign in to comment.