We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
已经按照要求配置了 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.
The text was updated successfully, but these errors were encountered:
更多的是访问thinkphp的index.php路径没有写对,路径要写到index.php,因为你的thinkphp的入口文件没有部署在服务器的根目录
Sorry, something went wrong.
No branches or pull requests
已经按照要求配置了
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.
The text was updated successfully, but these errors were encountered: