Skip to content

Django 3.x X_FRAME_OPTIONS default changed from SAMEORIGIN to DENY breaking Rack SVG #4442

@mtinberg

Description

@mtinberg

Environment

  • Python version: 3.6.8
  • NetBox version: develop-2.8

Steps to Reproduce

  1. Install develop-2.8 branch from lae.netbox Ansible playbook in venv with Django 3.x
  2. Navigate to Rack or Rack Elevations display, embedded SVG is retrieved but does not display
  3. TCPDump between HTTPD and uWSGI shows header X-Frame-Options: DENY
  4. This can be fixed by adding X_FRAME_OPTIONS = "SAMEORIGIN" to settings.py

Expected Behavior

Display embedded SVG

Observed Behavior

Empty box where object should be

Fix action

X_FRAME_OPTIONS = "SAMEORIGIN" in settings.py
https://docs.djangoproject.com/en/3.0/ref/settings/#std:setting-X_FRAME_OPTIONS

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions