Skip to content

Do not execute scripts in HTML blocks by default to prevent XSS #11172

Closed
@88250

Description

@88250
Member

设置 - 编辑器 - 允许执行 HTML 块内脚本,默认不勾选,即不允许支持脚本。

Activity

added this to the 3.0.12 milestone on Apr 27, 2024
TCOTC

TCOTC commented on Apr 27, 2024

@TCOTC
Contributor

感觉再给单个 HTML 块弄个开关会不会更好?

88250

88250 commented on Apr 27, 2024

@88250
MemberAuthor

感觉没有必要,默认安全过滤,用户启用时知道潜在的风险就行了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@TCOTC

      Issue actions

        Do not execute scripts in HTML blocks by default to prevent XSS · Issue #11172 · siyuan-note/siyuan