Skip to content

Commit

Permalink
Force X_FRAME_OPTIONS in settings due to different Django 3.0 default (
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed Apr 25, 2020
1 parent 02dde23 commit 917e7bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions djangocms_installer/django/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,7 @@ def _build_settings(config_data):
)
))

text.append('X_FRAME_OPTIONS = \'SAMEORIGIN\'')
text.append('CMS_PERMISSION = {0}'.format(vars.CMS_PERMISSION))
text.append('CMS_PLACEHOLDER_CONF = {0}'.format(vars.CMS_PLACEHOLDER_CONF))

Expand Down
1 change: 1 addition & 0 deletions tests/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -624,3 +624,4 @@ def test_build_settings(self):
'USER': 'user'
}
}''').strip() in settings)
self.assertTrue('X_FRAME_OPTIONS = \'SAMEORIGIN\'' in settings)

0 comments on commit 917e7bf

Please sign in to comment.