mirror of
https://github.com/vitejs/vite.git
synced 2024-11-22 07:09:05 +00:00
docs: change cors options object link (#11814)
This commit is contained in:
parent
9adb2a3a29
commit
9c4ca079b6
@ -76,7 +76,7 @@ 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) to fine tune the behavior or `false` to disable.
|
||||
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.
|
||||
|
||||
## preview.headers
|
||||
|
||||
|
@ -129,7 +129,7 @@ export default defineConfig({
|
||||
|
||||
- **Type:** `boolean | CorsOptions`
|
||||
|
||||
Configure CORS for the dev server. This is enabled by default and allows any origin. Pass an [options object](https://github.com/expressjs/cors) to fine tune the behavior or `false` to disable.
|
||||
Configure CORS for the dev 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.
|
||||
|
||||
## server.headers
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user