Commit bad2679
authored
chore(nuxt): switch ogImage security to strict mode (#153)
### 🔗 Linked issue
<!-- Please ensure there is an open issue and mention its number. For
example, "resolves #123" -->
### 🧭 Context
The `nuxt-og-image` module exposes a security option to control how OG
image requests are validated. Previously the config used
`maxQueryParamSize: 2048` to limit query string length. The module's
recommended hardened default is `strict: true`, which enables all
protections at once.
### 📚 Description
Replaces the `maxQueryParamSize: 2048` option inside `ogImage.security`
with `strict: true` in `nuxt.config.ts`.
`strict: true` enables the full security surface of the `nuxt-og-image`
module (signature verification, query-param constraints, and other
hardening) rather than only capping the query param size. This is a
documentation-only config change with no functional impact on existing
OG images as long as the app is not relying on unsigned, oversized query
strings.
**Impact:** configuration change only — no runtime logic modified.3 files changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
123 | 124 | | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
| |||
162 | 164 | | |
163 | 165 | | |
164 | 166 | | |
| 167 | + | |
165 | 168 | | |
166 | 169 | | |
167 | 170 | | |
168 | 171 | | |
169 | 172 | | |
170 | 173 | | |
171 | 174 | | |
| 175 | + | |
172 | 176 | | |
173 | 177 | | |
174 | 178 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
372 | 372 | | |
373 | 373 | | |
374 | 374 | | |
375 | | - | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
376 | 380 | | |
377 | 381 | | |
378 | 382 | | |
| |||
0 commit comments