docs(website): align guides with router behavior

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-08-02 21:11:08 -05:00
1 parent 934fbd4c19
commit fcd3df7022
11 files changed
+63 -30

No files matched your search

+3 -1
View File
@@ -44,7 +44,9 @@ const app = createApp({
```
`origins` accepts `string | string[] | '*' | (origin) => boolean`. A preflight `OPTIONS`
request (with `Access-Control-Request-Method`) is auto-answered with 204.
request (with `Access-Control-Request-Method`) is auto-answered with 204 before explicit or
automatic OPTIONS routing. A bare OPTIONS request is instead handled by an explicit `@Options`
route or the router's automatic `204` + `Allow` response.
- With `credentials: true`, the server **never** sends `Access-Control-Allow-Origin: *` — it
echoes the concrete allowed origin (or blocks the request).