Repository navigation
dsh-baize-rules v0.2.3
- The panel API origin check is off by default now (
apiOriginCheck, introduced in 0.2.1 withdefault true). The check refuses every request that does not arrive from loopback, and a web UI behind a reverse proxy is precisely that case — the request arrives from the proxy's address, not from loopback. So the old default silently broke the panel for the ordinary proxied deployment:/baize-rules.apianswered403 requests are accepted from this machine onlywhile the rest of the UI kept working (0.2.0 and earlier had no check and were unaffected). The check itself is unchanged and still available: setapiOriginCheck: trueto enforce same-machine/same-origin only — appropriate when the port is reachable by others and no proxy layer authenticates the callers. Left off (the default), authentication belongs to the transport (dsh's own token) and to the proxy. - Tests split by that default: one case asserts a non-loopback, cross-origin caller is accepted without config, and the two refusal cases (foreign address, cross-site
Origin) now mount withapiOriginCheck: true. - Docs (
README.md,README.zh.md,cordis.patch.yml) carry the new default, and the403row of the API failure table is marked as appearing only with the check switched on.
Install: dsh plugin --profile web add dsh-baize-rules@0.2.3
Published to npm on 2026-09-22.