-
Notifications
You must be signed in to change notification settings - Fork 526
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
前端访问问题 #234
Comments
改一下 path = "/ws" |
改了后报错: |
|
老大,上面的例子针对老版本(0.6.3)可以使用,新版本(0.12.0)貌似不行,我再自己研究下吧 |
老大,我找到原因了,@BeforeHandshake鉴权问题,谢了 |
ok |
你好,这个问题是怎么解决的呢? 我这边也遇到了,在本地是正常的。部署到服务器不正常。 然后没有使用@BeforeHandshake |
我也遇到这个了,奇怪的是之前我一模一样的写法是可以的。不知道跟我后面升级jdk有没有关系…… |
大佬,我前端是基于socketJs连接,会请求ws/info接口,报错如下:
GET http://localhost:8888/ws/info?t=1657192185347 403 (Forbidden)
希望可以给个前端连接的例子做参考
前端连接代码:
`<script>
var stompClient = null;
</script>`
后端代码:
`
@slf4j
@component
@serverendpoint(path = "/ws/{arg}", host = "localhost", port = "8888", corsOrigins = "/ws/*", corsAllowCredentials = "true")
public class NettyWebSocket {
.........
}`
The text was updated successfully, but these errors were encountered: