Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed: Error during WebSocket handshake: Unexpected response code: 400 #21

Open
lzz2017 opened this issue Jan 17, 2020 · 1 comment
Open

Comments

@lzz2017
Copy link

lzz2017 commented Jan 17, 2020

In my project, the front and back end separation is adopted, which is forwarded through nginx and zuul,then return error 400 . if only through nginx is ok.
the zuul properites is:
zuul:
host:
socket-timeout-millis: 30000
ignored-services: '*'
routes:
# 登录服务
auth_server:
serviceId: unified-login-center-server
path: /auth/**
custom-sensitive-headers: true
sensitiveHeaders: Cookie,Set-Cookie
# 权限控制中心
uacc:
serviceId: unified-authority-control-server-hlsc
path: /uacc/**
sensitiveHeaders: Cookie,Set-Cookie,Authorization
platform:
serviceId: hlsc-platform-server
path: /hlsc-platform/**
sensitiveHeaders: Cookie,Set-Cookie,Authorization
ws:
brokerages:
platform:
end-points: /webSocketServer
brokers: /topic
destination-prefixes: /app
server:
servlet:
context-path: /gwhlsc
and the websocket url is
var socket = new SockJS("http://192.168.5.66/gwhlsc/hlsc-platform/webSocketServer");

@oday-xiexin
Copy link

Madam, you may need to hide some sensitive information to prevent information leakage

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants