rymcu / forest

forest(森林)——一款现代化的知识社区后台项目,使用 SpringBoot + Shiro + MyBatis + JWT + Redis 实现

Home Page:https://rymcu.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sockjs+stomp 报跨越问题

mengshuodlut opened this issue · comments

在连接时报Access to XMLHttpRequest at 'http://localhost:3000/ws/info?t=1718968973857' from origin 'http://10.7.11.235:3000' has been blocked by CORS policy: The value of the 'Access-Control-Allow-Credentials' header in the response is '' which must be 'true' when the request's credentials mode is 'include'. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.问题

跨域问题请自行搜索 后端如何配置允许跨域