[Fixed]-Django nginx Refused to display in a frame because it set 'X-Frame-Options' to 'SAMEORIGIN'

51👍

In ‘settings.py’ file, add these two lines. It may help you.

X_FRAME_OPTIONS = 'ALLOWALL'

XS_SHARING_ALLOWED_METHODS = ['POST','GET','OPTIONS', 'PUT', 'DELETE']
👤J.Jai

Leave a comment