[Django]-Django page not rendering in Facebook iframe

6👍

Django uses Clickjacking protection with ‘django.middleware.clickjacking.XFrameOptionsMiddleware’.

To allow the site to be embedded in an iframe just erase that middleware from settings.py

https://docs.djangoproject.com/en/dev/ref/clickjacking/#clickjacking-prevention

Leave a comment