Skip to content

Commit

Permalink
Merge pull request #9195 from sakshampathak1508/saksham
Browse files Browse the repository at this point in the history
SECURE_CONTENT_TYPE_NOSNIFF setted to True
  • Loading branch information
rtibbles authored Mar 16, 2022
2 parents d9be047 + 1518713 commit bb3b965
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kolibri/deployment/default/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,6 +387,8 @@

SESSION_FILE_PATH = os.path.join(conf.KOLIBRI_HOME, "sessions")

SECURE_CONTENT_TYPE_NOSNIFF = True

if not os.path.exists(SESSION_FILE_PATH):
if not os.path.exists(conf.KOLIBRI_HOME):
raise RuntimeError("The KOLIBRI_HOME dir does not exist")
Expand Down

0 comments on commit bb3b965

Please sign in to comment.