登录

前后端分离跨域问题

集成:phpstudy

前端VUE:www.front.com :80

后端TP6:  www.tp6.com :80

前端 axiou->get("www.tp6.com")

报错:

Access to XMLHttpRequest at 'http://xxxxxxxxxxx' from origin 'http://xxxxxxxx' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

# PHP
谢耀威 谢耀威 934 天前 784 次浏览

全部回复(0) 我要回复

暂无回复
  • 取消 回复 发送