Skip to content

本地登录时还是出现了跨域问题? #41

@tangkepeng

Description

@tangkepeng

已经按照要求配置了
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.

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