Skip to content

techcafee/Django-Security

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Django-Security

Copy and paste codes to settings.py file

CSRF_COOKIE_SECURE = True   # Protection MITM attack
SESSION_COOKIE_SECURE = True  # Protection MITM attack
SECURE_BROWSE_XSS_FILTER = True  # Protection XSS attack
SECURE_CONTENT_TYPE_NOSNIFF = True  # Protection XSS attack
SECURE_SSL_REDIRECT = True # Redirect to SSL
SECURE_HOST_SECONDS = 86400  # Increasing the security of the transport layer
SECURE_HOST_INCLUDE_SUBDOMAINS = True  # Increasing the security of the transport layer
SECURE_HOST_PRELOAD = True  # Increasing the security of the transport layer

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%