From c9a4b7a0d87fab05ff2ff12cfc2013bd575f57ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=20/=20green?= Date: Thu, 23 Jan 2025 16:48:12 +0900 Subject: [PATCH] docs: fix `preview.cors` description (#19271) --- docs/config/preview-options.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/config/preview-options.md b/docs/config/preview-options.md index d1a06a39d4ebb1..79b2a90542c81a 100644 --- a/docs/config/preview-options.md +++ b/docs/config/preview-options.md @@ -87,7 +87,9 @@ Uses [`http-proxy`](https://github.com/http-party/node-http-proxy). Full options - **Type:** `boolean | CorsOptions` - **Default:** [`server.cors`](./server-options#server-cors) -Configure CORS for the preview server. This is enabled by default and allows any origin. Pass an [options object](https://github.com/expressjs/cors#configuration-options) to fine tune the behavior or `false` to disable. +Configure CORS for the preview server. + +See [`server.cors`](./server-options#server-cors) for more details. ## preview.headers