You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/config/server-options.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -161,7 +161,7 @@ export default defineConfig({
161
161
## server.cors
162
162
163
163
-**Type:**`boolean | CorsOptions`
164
-
-**Default:**`false`
164
+
-**Default:**`{ origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/ }` (allows localhost, `127.0.0.1` and `::1`)
165
165
166
166
Configure CORS for the dev server. Pass an [options object](https://github.com/expressjs/cors#configuration-options) to fine tune the behavior or `true` to allow any origin.
0 commit comments