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 df20c5f commit abd0351Copy full SHA for abd0351
src/api/integrations/event/websocket/websocket.controller.ts
@@ -33,7 +33,8 @@ export class WebsocketController extends EventController implements EventControl
33
const { remoteAddress } = req.socket;
34
const websocketConfig = configService.get<Websocket>('WEBSOCKET');
35
const allowedHosts = websocketConfig.ALLOWED_HOSTS || '127.0.0.1,::1,::ffff:127.0.0.1';
36
- const isAllowedHost = allowedHosts
+ const allowAllHosts = allowedHosts.trim() === '*';
37
+ const isAllowedHost = allowAllHosts || allowedHosts
38
.split(',')
39
.map((h) => h.trim())
40
.includes(remoteAddress);
0 commit comments