登陆

前后端分离跨域问题

集成: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
谢耀威谢耀威30 天前370 次浏览

全部回复(0)我要回复

暂无评论~
  • 取消回复发送