已经按照要求配置了 axios.defaults.baseURL = 'http://127.0.0.1/VueThink/php/index.php/' window.HOST = 'http://127.0.0.1/VueThink/php/index.php/' 但登录时还是出现跨域问题,是什么原因啊? Failed to load http://127.0.0.1/VueThink/php/index.php/admin/base/login: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.
已经按照要求配置了
axios.defaults.baseURL = 'http://127.0.0.1/VueThink/php/index.php/'
window.HOST = 'http://127.0.0.1/VueThink/php/index.php/'
但登录时还是出现跨域问题,是什么原因啊?
Failed to load http://127.0.0.1/VueThink/php/index.php/admin/base/login: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8080' is therefore not allowed access.