Skip to content

Commit

Permalink
Add X-FRAME_OPTIONS header to protect against Clickjacking
Browse files Browse the repository at this point in the history
Enables the django.middleware.clickjacking.XFrameOptionsMiddleware
middleware class with the default X-Frame-Options header SAMEORIGIN.
More details here: https://docs.djangoproject.com/en/dev/ref/clickjacking/

Change-Id: Ic06fdf0b79c9cd245c12ed1f4438af9a4b52ad03
Fixes: bug #1118327
  • Loading branch information
odyssey4me authored and spearki committed Feb 15, 2013
1 parent efff047 commit 2b3d829
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions openstack_dashboard/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
'horizon.middleware.HorizonMiddleware',
'django.middleware.doc.XViewMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware',
)

TEMPLATE_CONTEXT_PROCESSORS = (
Expand Down

0 comments on commit 2b3d829

Please sign in to comment.