Skip to content

[BUG] handling of nextcloud X-Frame-Options header outdated? #569

@BlockListed

Description

@BlockListed

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

The default Nextcloud proxy configuration does not pass the Nextcloud security checker. In the current version of Nextcloud contrary to PR #501, the proxy_hide_header X-Frame-Options directive causes the security checks to fail. If this is commented out the security check pass, since the current version of Nextcloud seems to send that header to SWAG already. This would remove the need to uncomment the add_header X-Frame-Options "SAMEORIGIN" always; directive in ssl.conf and provide a secure Nextcloud experience Out of the box.

Expected Behavior

No response

Steps To Reproduce

  1. Setup the latest version of Nextcloud (26) (lscr.io/linuxserver/nextcloud)
  2. Setup the latest version of Swag (lscr.io/linuxserver/swag) with all default settings, except for enabling the nextcloud proxy conf
  3. Run the nextcloud security check /settings/admin/overview
  4. It will fail complaining about the X-Frame-Options header

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions