mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
* feat(labs): let listed browser origins call the local API A web page from an http(s) origin listed in Labs › Browser access to the local API can call Hex's authenticated loopback API with fetch. Its unauthenticated CORS preflight is answered 204 for that exact origin, and every response — 401, 404, and SSE streams included — carries that origin and Vary: Origin. Requests still need the bearer token; nothing allows credentials or *. Off, a missing Origin, or an origin not listed answers exactly as before. Origins save as scheme://host[:port] only: *, null, paths, queries, fragments, and userinfo are dropped, a trailing / and a default port are normalized away, and the scheme and host are lowercased. * fix(local_api): refuse CORS for a duplicate Origin without rejecting it A request with two Origin headers is routed exactly as before this lab existed (401 unauthenticated, 200 authenticated) but never earns CORS headers. The Labs origins field keeps exactly what was typed through its own debounced save, so a port or trailing comma is never rewritten under the caret. Docs name the pre-request errors that carry no CORS headers and how IPv6 and non-ASCII origins are written. |
||
| .. | ||
| cors.rs | ||
| dictation.rs | ||
| discovery.rs | ||
| http.rs | ||
| meeting_events.rs | ||
| processing.rs | ||
| streams.rs | ||
| timestamps.rs | ||
| transcriptions.rs | ||