Home > Back-end >  SockJS Uncaught Error: Incompatibile SockJS!
SockJS Uncaught Error: Incompatibile SockJS!

Time:09-20

First above


springboot - websocket
On the project recently encountered this problem, the overall architecture using springboot, not be distributed,

To shake hands is the most began to connect 400 error, to understand the need to adjust the nginx proxy, after stackoverflow
refer to the article 1


After adjusting agent only solved the problem of the 400 error, correct the problem,
Tried to adjust sockjs - client source code, modify the reference sockjs version number, invalid, or an error
Google for 1 days, didn't find a solution, the following is my configuration, hope can get help

Sockjs - client:


Nginx:


Java:

CodePudding user response:

Front-end developer USES the vue, local development didn't have a problem, when released to online problems, a preliminary inference is nginx configuration problem, but I am familiar with nginx is not,,,,

CodePudding user response:

Problem has been solved, refer to the article

https://www.cnblogs.com/liuxia912/p/11075630.html
  • Related