nnn149 / MeetingWeb

webrtc vue项目,在线会议,多人视频
MIT License
132 stars 43 forks source link

无法访问后端? #4

Open tiexi opened 3 years ago

tiexi commented 3 years ago

前端发起请求后报这个错误是什么原因? Access to XMLHttpRequest at 'http://localhost:8080/authentication/login' from origin 'http://localhost:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: Redirect is not allowed for a preflight request. 想问下这个怎么解决, 谢谢

nnn149 commented 3 years ago

你确认下后端WebSecurity类中的corsFilter有没有在。然后别删除https,全局替换成你本机的ip再试试