Ver código fonte

allow different UI from different IP

enzo 2 semanas atrás
pai
commit
3935d315b7
1 arquivos alterados com 1 adições e 0 exclusões
  1. 1 0
      src/palm-oil/vision.gateway.ts

+ 1 - 0
src/palm-oil/vision.gateway.ts

@@ -166,6 +166,7 @@ function normalizeChatResponse(raw: any): ChatResponse {
 
 @WebSocketGateway({
   cors: { origin: '*' },
+  allowEIO3: true, // ngx-socket-io/socket.io-client in dp-ui is pinned at v2.5.0 (Engine.IO v3); this Nest gateway runs socket.io v4, which rejects EIO3 handshakes unless explicitly allowed.
 })
 export class VisionGateway
   implements OnGatewayInit, OnGatewayConnection, OnGatewayDisconnect