美文网首页
127.0.0.1/:1 Access to XMLHttpRe

127.0.0.1/:1 Access to XMLHttpRe

作者: Guyone | 来源:发表于2020-03-15 16:01 被阅读0次

报错:127.0.0.1/:1 Access to XMLHttpRequest at 'http://www.meiduo.site:8000/qq/login/?next=/' from origin 'http://127.0.0.1:8000' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

解决(浏览器url要对应前端中url):方案(1)浏览器127.0.0.1:8000/login/ -->  前端127.0.0.1:8000/qq/login/      方案(2)浏览器 www.meiduo.site:8000/login/ -->  前端www.meiduo.site:8000/qq/login/

相关文章

网友评论

      本文标题:127.0.0.1/:1 Access to XMLHttpRe

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