docs(website): align guides with router behavior
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
11 files changed
+63
-30
No files matched your search
@@ -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).
|
||||
|
||||
Reference in new issue
Block a user