原文:No 'Access-control-Allow-Origin' header is present on the requested resource 跨域问题

在IDEA中有一套微服务,然后在webStorm中写前端代码,前端使用ajax访问Controller: 后端Controller会返回一个Map,执行没有问题,但是ajax一直执行error,F 发现出错:No Access control Allow Origin header is present on the requested resource。 查询后,发现是因为跨域了,跨域访问违反 ...

2019-10-17 13:54 0 3800 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM