Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 6cc61f2

Browse files
authored
Change to only send CORS settings to API
Change to only send CORS settings to API class to avoid sending keys to public facing interface and avoid exploits of them.
1 parent a5b0266 commit 6cc61f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/echo-server.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ export class EchoServer {
121121
this.channel = new Channel(io, this.options);
122122
this.redisSub = new RedisSubscriber(this.options);
123123
this.httpSub = new HttpSubscriber(this.server.express, this.options);
124-
this.httpApi = new HttpApi(io, this.channel, this.server.express, this.options);
124+
this.httpApi = new HttpApi(io, this.channel, this.server.express, this.options.apiOriginAllow);
125125
this.httpApi.init();
126126

127127
this.onConnect();

0 commit comments

Comments
 (0)