美文网首页
我的sd操作导致的报错跨域Access to XMLHttpRe

我的sd操作导致的报错跨域Access to XMLHttpRe

作者: peterz博客 | 来源:发表于2019-04-26 17:55 被阅读0次

之前一个接入短信的项目,很久没管它了,最近打开一看,怎么报跨域问题??

Access to XMLHttpRequest at 'file:///E:/Phpstudy/PHPTutorial/WWW/sms/smsyzm.php' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
image.png

调试了一会发现都不走后端,才发现,我是直接右键浏览器打开的。。。 真是rlgl。


image.png

直接用正常localhost访问就好了
幸好没有太久时间发现,不然我又要重新下载它的sdk来调试了。 ̄へ ̄

相关文章

网友评论

      本文标题:我的sd操作导致的报错跨域Access to XMLHttpRe

      本文链接:https://www.haomeiwen.com/subject/hjvqnqtx.html