使用jsonp完美解决跨域问题

jordanlsw 17 0 PDF 2020-10-28 02:10:06

在项目中遇到错误提示“No 'Access-Control-Allow-Origin' header is present on the requested resource.”查了下度娘,这个问题和安全机制有关,默认不允许跨域调用,这里记录一下解决方案,防止以后再犯相同的错误。

用户评论
请输入评论内容
评分:
暂无评论