Skip to content

使用docker直接运行会有跨域问题啊 #38

@Veitor

Description

@Veitor

从docker hub上直接使用你们的镜像后运行,使用默认配置
web domain是a.com,3000端口的
cli domain是a.com,8080端口,
那访问a.com:3000,页面上有js请求a.com:8080的接口,跨域问题

要是把web domain和cli domain 都处理成80端口,是有问题的,也行不通。。。所以当初你们是咋搞的?
一定要在服务器上设置允许跨域的header?

有没有其他方案?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions