跨域问题
No ‘Access-Control-Allow-Origin’ header is present on the requested resource 错误
翻译是找不到资源路径
1 前端解决跨域(不建议):
将crossDomain设置为true
$.ajax({
url: 'http://www.domain2.com:8080/login',
type: 'get',
dataType: 'jsonp', // 请求方式为jsonp
crossDomain: t
原创
2020-12-07 11:37:53 ·
165 阅读 ·
0 评论