We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e16bf1f commit 1bda847Copy full SHA for 1bda847
packages/vite/src/node/http.ts
@@ -75,7 +75,10 @@ export interface CommonServerOptions {
75
export interface CorsOptions {
76
origin?:
77
| CorsOrigin
78
- | ((origin: string, cb: (err: Error, origins: CorsOrigin) => void) => void)
+ | ((
79
+ origin: string | undefined,
80
+ cb: (err: Error, origins: CorsOrigin) => void,
81
+ ) => void)
82
methods?: string | string[]
83
allowedHeaders?: string | string[]
84
exposedHeaders?: string | string[]
0 commit comments