diff --git a/src/content/docs/security/http-headers.mdx b/src/content/docs/security/http-headers.mdx index df9bd4c8b3..f018aaa3b2 100644 --- a/src/content/docs/security/http-headers.mdx +++ b/src/content/docs/security/http-headers.mdx @@ -22,17 +22,18 @@ will include those headers. ### Header Names The header names are limited to: -- Access-Control-Allow-Credentials ↗ -- Access-Control-Allow-Headers ↗ -- Access-Control-Allow-Methods ↗ -- Access-Control-Expose-Headers ↗ -- Access-Control-Max-Age ↗ -- Cross-Origin-Embedder-Policy ↗ -- Cross-Origin-Opener-Policy ↗ -- Cross-Origin-Resource-Policy ↗ -- Permissions-Policy ↗ -- Timing-Allow-Origin ↗ -- X-Content-Type-Options ↗ +- Access-Control-Allow-Credentials ↗ +- Access-Control-Allow-Headers ↗ +- Access-Control-Allow-Methods ↗ +- Access-Control-Expose-Headers ↗ +- Access-Control-Max-Age ↗ +- Cross-Origin-Embedder-Policy ↗ +- Cross-Origin-Opener-Policy ↗ +- Cross-Origin-Resource-Policy ↗ +- Permissions-Policy ↗ +- Service-Worker-Allowed ↗ +- Timing-Allow-Origin ↗ +- X-Content-Type-Options ↗ - Tauri-Custom-Header :::note @@ -46,15 +47,15 @@ The header names are limited to: ### How to Configure Headers - with a string -- with an Array of strings -- with an Object/Key-Value, where the values must be strings +- with an array of strings +- with an object/key-value, where the values must be strings - with null The header values are always converted to strings for the actual response. Depending on how the configuration file looks, some header values need to be composed. Those are the rules on how a composite gets created: - `string`: stays the same for the resulting header value -- `Array`: items are joined by `, `  for the resulting header value +- `array`: items are joined by `, `  for the resulting header value - `key-value`: items are composed from: key + space + value. Items are then joined by `; `  for the resulting header value - `null`: header will be ignored @@ -182,7 +183,7 @@ export default defineNuxtConfig({ }, }); ``` -**Next.js** doesn't rely on Vite, so the approach is different. +**Next.js** doesn't rely on **Vite**, so the approach is different. Read more about it here ↗. The headers are defined in `next.config.js`. ```javascript title=next.config.js