Skip to content

Commit 397622f

Browse files
committed
docs(hardening): the boot refusal and the one CORS variable, said precisely
Claude-Session: https://claude.ai/code/session_01LmjU2x1faLZ39DVTFyVca6 Co-authored-by: Claude <noreply@anthropic.com>
1 parent 8c038d7 commit 397622f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎docs/HARDENING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,11 +201,11 @@ origins you name:
201201
| --- | --- |
202202
| No origin list (neither `OS_CORS_ORIGIN` nor the plugin's `cors.origins`) | **No cross-origin caller.** On a development boot (`NODE_ENV=development`, which `os dev` and `os serve --dev` set), loopback origins (`localhost`, `127.0.0.1`, `[::1]`, any port) are admitted too. |
203203
| A list (`OS_CORS_ORIGIN=https://app.example.com`, comma-separated; exact origins or patterns such as `https://*.example.com`) | Those origins, with credentials unless `OS_CORS_CREDENTIALS=false`. Loopback origins are admitted alongside any list. |
204-
| `*` while credentials are on | **Refused at boot** — the process exits naming the two remedies. |
204+
| `*` while credentials are on | **Refused at boot** — the boot fails with a message naming the two remedies. |
205205

206206
Same-origin requests need no CORS answer, so the Console under
207207
`/_console` and any page the server itself serves work with no list at
208-
all. A front-end served from **another origin** needs exactly one
208+
all. A front-end served from **another origin** needs one CORS
209209
variable:
210210

211211
```bash

0 commit comments

Comments
 (0)