想让前后台分离,前端跨域怎么调用后台的数据,现在是一旦调用就给拦截回去到登陆页面
我改了路径还是不行,前端还是报以下错误信息:
index.html#/app/home:1 XMLHttpRequest cannot load http://192.168.1.110:8080//admin/proshelf/dateList.shtml. Redirect from 'http://192.168.1.110:8080//admin/proshelf/dateList.shtml' to 'http://192.168.1.110:8080/login.html;JSESSIONID=96fa64a0-1719-4fc4-998c-453bc00e7ca0' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://127.0.0.1:8020' is therefore not allowed access.