Skip to content

关于本地前端调用后台接口报错跨域问题 #6

@joyld0712

Description

@joyld0712

连接浏览器就报错
Access to XMLHttpRequest at 'http://localhost/vue-admin-php/public/index.php/admin/login/out' from origin 'http://172.29.130.120:8081' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
请问下这是什么情况?明明都是在本地的
请求大大指点下

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions