Skip to content
New issue

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

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

Open
Veitor opened this issue Apr 27, 2018 · 1 comment
Open

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

Veitor opened this issue Apr 27, 2018 · 1 comment

Comments

@Veitor
Copy link

Veitor commented Apr 27, 2018

从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?

有没有其他方案?

@yunheli
Copy link
Contributor

yunheli commented Apr 27, 2018

@Veitor 可以更改docker-compose文件,端口映射 https://github.com/FlowCI/docs/blob/master/cf_docker.md 根据这个文档改

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants