[Feature] Enable Electron web security in release builds · Issue #5763 · marktext/marktext · GitHub
Skip to content

[Feature] Enable Electron web security in release builds #5763

Closed

Description

@ppontes

Summary

Enable Electron’s webSecurity setting in release builds only.

Problem it solves

MarkText currently disables Chromium’s same-origin protections in production. Electron’s official security checklist explicitly recommends: “Do not disable webSecurity.”

No release-mode regressions were observed in automated testing with webSecurity: true. The flag seems to have been disabled in the original Aidou/Doutu image-search change, which made cross-origin requests but was removed meanwhile.

Development still requires the setting to remain disabled for document-local images.

Proposed solution

Set webSecurity: true in release builds while preserving the existing development behavior. Apply the change to both editor and preferences windows.

Activity

  1. added a commit that references this issue on Oct 22, 2026
    15c5c99
  2. added a commit that references this issue on Oct 23, 2026
    9a27265
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions