Skip to content

cocos3.8.x在浏览器测试时使用http请求会出现跨域问题 #54

@ziyanqinghan

Description

@ziyanqinghan

报错如下:
Access to XMLHttpRequest at 'http://localhost:20001/game/api/test' from origin 'http://localhost:5678' 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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions