We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90fb0a9 commit a463d26Copy full SHA for a463d26
lib/server.ts
@@ -9,7 +9,7 @@ import { serialize } from "cookie";
9
import { Server as DEFAULT_WS_ENGINE } from "ws";
10
import { IncomingMessage, Server as HttpServer } from "http";
11
import { CookieSerializeOptions } from "cookie";
12
-import { CorsOptions } from "cors";
+import { CorsOptions, CorsOptionsDelegate } from "cors";
13
14
const debug = debugModule("engine");
15
@@ -105,7 +105,7 @@ export interface ServerOptions {
105
/**
106
* the options that will be forwarded to the cors module
107
*/
108
- cors?: CorsOptions;
+ cors?: CorsOptions | CorsOptionsDelegate;
109
110
* whether to enable compatibility with Socket.IO v2 clients
111
* @default false
0 commit comments