Skip to content

Eliminate X-Frame-Options setting#7831

Merged
labkey-adam merged 4 commits into
release26.7-SNAPSHOTfrom
26.7_fb_x_frame_options
Jul 9, 2026
Merged

Eliminate X-Frame-Options setting#7831
labkey-adam merged 4 commits into
release26.7-SNAPSHOTfrom
26.7_fb_x_frame_options

Conversation

@labkey-adam

@labkey-adam labkey-adam commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Rationale

The frame-ancestors directive of our standard CSP is the modern way to control what other sites can "frame" a LabKey deployment (none, by default). The X-Frame-Options header is effectively obsolete, ignored by any browser that supports frame-ancestors. All major browsers have supported frame-ancestors for 10 years and hence ignore X-Frame-Options.

Related Pull Requests

User Education

  • Bullet in the Release Notes that we've removed the obsolete X-Frame-Options header setting in Site Settings in favor of the frame-ancestors directive in the standard CSP. If necessary, this (and all other CSP directives) can be customized on the "Allowed External Resource Hosts" administration page.
  • This page should be updated: https://www.labkey.org/Documentation/wiki-page.view?name=configAdmin&referrer=inPage#http. I eliminated the "HTTP Security Settings" section since it's down to one item and merged the remaining Server header setting into the "Security settings" section. (Note that the Ext3 mentions should be removed from this page as well, https://github.com/LabKey/internal-issues/issues/1177)

Comment thread api/src/org/labkey/filters/ContentSecurityPolicyFilter.java Outdated
labkey-adam added a commit to LabKey/testAutomation that referenced this pull request Jul 9, 2026
#### Rationale
This ` X-Frame-Options` setting has been removed. So has the `CSRF`
setting (long ago).

#### Related Pull Requests
- LabKey/platform#7831
@labkey-adam labkey-adam self-assigned this Jul 9, 2026
@labkey-adam labkey-adam merged commit 445dc4d into release26.7-SNAPSHOT Jul 9, 2026
7 of 9 checks passed
@labkey-adam labkey-adam deleted the 26.7_fb_x_frame_options branch July 9, 2026 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants