Security audit fixes: docs (security.md, content.md, i18n.md, AGENT.md, skills), changelog, static-rule judgments for the merged doctor and 2FA code, hook mark for the account-rule tests

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
Radosław Smoliński
2026-12-01 17:02:20 +01:00
co-authored by Claude Opus 5.5
parent e9f9947eb7
commit e5964d4e05
23 changed files with 283 additions and 47 deletions
+1 -1
View File
@@ -141,7 +141,7 @@ See [proxy in this section](#proxy-formerly-middleware) below.
| Option | Default | What it does |
|---|---|---|
| `NextResponse` | — (required) | injected from `next/server` (the plugin does not import it) |
| `markdown` | off | `true` = prefix `/md`, a string = a different one; paths under the prefix pass without a redirect, `Accept: text/markdown` → rewrite (content.md) |
| `markdown` | off | `true` = prefix `/md`, a string = a different one, `{ prefix?, negotiate? }` the object form; paths under the prefix pass without a redirect, `Accept: text/markdown` → rewrite answered `private, no-store` + `Vary: Accept` (1.18.0); `negotiate: false` = no rewrite (content.md "content negotiation") |
| `exposeHeaders` | `true` | request headers `x-locale` (language from the URL or `defaultLocale`) and `x-pathname` |
| `consentCategory` | `'functional'` | consent category required to write the language cookie; `'necessary'` = always write |
| `consentCookieName` | `CONSENT_COOKIE` | consent cookie to read |