MeetingWeb icon indicating copy to clipboard operation
MeetingWeb copied to clipboard

无法访问后端?

Open tiexi opened this issue 3 years ago • 1 comments

前端发起请求后报这个错误是什么原因? 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. 想问下这个怎么解决, 谢谢

tiexi avatar Aug 09 '21 12:08 tiexi

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

nnn149 avatar Aug 09 '21 16:08 nnn149