mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 04:44:21 +01:00
fix: sanitize rendered markdown HTML
Add a shared rehype pipeline (rehype-raw -> rehype-sanitize -> rehype-highlight) to every markdown renderer so scripts, frames and event handlers are stripped from model output and repository files while safe HTML and highlighting survive. Also delete change walkthroughs when their session is deleted (including in-flight generation), build schedule model options from default/favorite/recent state, and include 127.0.0.1 origins in the default trusted origins.
This commit is contained in:
1 parent
b36d412ca2
commit
3d143568c1
25 files changed
+343
-101
No files matched your search
+3
-2
@@ -81,8 +81,9 @@ DEBUG=false
|
||||
# AUTH_SECRET=
|
||||
|
||||
# Trusted origins for authentication (comma-separated)
|
||||
# Add your server's external URL when accessing remotely
|
||||
# AUTH_TRUSTED_ORIGINS=http://localhost:5173,http://localhost:5003
|
||||
# Add your server's external URL when accessing remotely. localhost and
|
||||
# 127.0.0.1 are distinct browser origins, so both are listed.
|
||||
# AUTH_TRUSTED_ORIGINS=http://localhost:5173,http://localhost:5003,http://127.0.0.1:5173,http://127.0.0.1:5003
|
||||
|
||||
# Admin Account (optional - for pre-configured single-user mode)
|
||||
# When set, admin user is created on first startup and self-registration is disabled
|
||||
|
||||
Reference in new issue
Block a user