首页 >社区问答列表 >前后端分离跨域问题

前后端分离跨域问题

集成: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.

无数据提示还没有回复,楼主喊你快去抢前排~~~我来回答