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
@@ -149,7 +149,7 @@ export default defineConfig({
149
149
## server.cors
150
150
151
151
-**Type:**`boolean | CorsOptions`
152
-
-**Default:**`false`
152
+
-**Default:**`{ origin: /^https?:\/\/(?:(?:[^:]+\.)?localhost|127\.0\.0\.1|\[::1\])(?::\d+)?$/ }` (allows localhost, `127.0.0.1` and `::1`)
153
153
154
154
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