0

I am new to Django. I have launched a new site with Django. I wish people can iframe my site. But when doing I frame, It shows Site Refused to connect. . As a newbie, I don’t have any idea what to do now. Would you please suggest me.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62

1 Answers1

1

Django 3.0(https://docs.djangoproject.com/en/3.1/releases/3.0/#security) update disabled X_FRAME_OPTIONS to DENY in settings.py. You can add the domain you want to show iframe in

X_FRAME_OPTIONS = 'SAMEORIGIN'
Linh Nguyen
  • 3,452
  • 4
  • 23
  • 67