django-jazzmin icon indicating copy to clipboard operation
django-jazzmin copied to clipboard

# Use modals instead of popups "related_modal_active": True,

Open ingberrio opened this issue 2 years ago • 2 comments

When i trie to save my form (PopUp) with some fields of foreingkey relation, the PopUp put in white, but the register works in my DB, with "related_modal_active": False, the Modals work's OK,

ingberrio avatar Jun 14 '22 14:06 ingberrio

An error occurs when related_modal_active is set to True. In the console it provides two messages:

  • Refused to display 'http://127.0.0.1:8000/' in a frame because it set multiple 'X-Frame-Options' headers with conflicting values ('DENY, SAMEORIGIN').
  • crbug/1173575, non-JS module files deprecated.

DanielSwain avatar Oct 28 '22 15:10 DanielSwain

Try add this in your core settings.py

X_FRAME_OPTIONS = 'SAMEORIGIN'

willianmascimiano avatar Nov 12 '22 00:11 willianmascimiano