Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Header deprecated: X-Frame-Options #9

@mdPlusPlus

Description

@mdPlusPlus

According to MDN the use of this header is deprecated: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options

Apparently it's supposed to be replaced by the frame-ancestors CSP: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Security-Policy/frame-ancestors

I'm no expert, but it seems like to implement what was X-Frame-Options DENY is now this in CSP:

  • Apache: Header always set Content-Security-Policy "frame-ancestors 'none';"
  • NGINX: add_header Content-Security-Policy "frame-ancestors 'none';";
  • Lighttpd: "Content-Security-Policy" => "frame-ancestors 'self' https://myhomeassistant.mydomain.tld;"

Disclaimer: All of this is untested

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions