Skip to content

Add allowedFramingOrigins for MeshCentral clickjacking protection - #2417

Open
JonBons wants to merge 1 commit into
amidaware:developfrom
JonBons:feat-mesh-framing-origins
Open

Add allowedFramingOrigins for MeshCentral clickjacking protection#2417
JonBons wants to merge 1 commit into
amidaware:developfrom
JonBons:feat-mesh-framing-origins

Conversation

@JonBons

@JonBons JonBons commented Feb 20, 2026

Copy link
Copy Markdown

Replace allowFraming with allowedFramingOrigins for default config so only the TacticalRMM frontend can embed MeshCentral in iframes, addressing potential clickjacking. (See PR for MeshCentral changes Ylianst/MeshCentral#7599, was released in version 1.1.57 of MeshCentral)

  • install.sh: use allowedFramingOrigins with frontend domain
  • Docker: add allowedFramingOrigins from APP_HOST (empty array if unset)
  • Ansible mesh.cfg.j2: add allowedFramingOrigins for prod and dev (port 8080)
  • update.sh: migrate existing allowFraming configs to allowedFramingOrigins
    • Skip when FRONTEND is empty or mesh config is missing
    • Add backup and warning on migration failure

@CLAassistant

CLAassistant commented Feb 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@JonBons JonBons changed the title feat: add allowedFramingOrigins for MeshCentral clickjacking protection Add allowedFramingOrigins for MeshCentral clickjacking protection Feb 20, 2026
@JonBons

JonBons commented Mar 3, 2026

Copy link
Copy Markdown
Author

MeshCentral changes that this PR is dependent on is now released in version 1.1.57.

Replace allowFraming: true with allowedFramingOrigins so only the
TacticalRMM frontend can embed MeshCentral in iframes, addressing
potential clickjacking.

- install.sh: use allowedFramingOrigins with frontend domain
- Docker: add allowedFramingOrigins from APP_HOST (empty array if unset)
- Ansible mesh.cfg.j2: add allowedFramingOrigins for prod and dev (port 8080)
- update.sh: migrate existing allowFraming configs to allowedFramingOrigins
  - Skip when FRONTEND is empty or mesh config is missing
  - Add backup and warning on migration failure
@JonBons
JonBons force-pushed the feat-mesh-framing-origins branch from 81f3e3e to 643727b Compare August 19, 2026 20:25
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.

3 participants