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

绑定gitlab账号时出现异常 #11

Open
yaakua opened this issue Apr 21, 2016 · 5 comments
Open

绑定gitlab账号时出现异常 #11

yaakua opened this issue Apr 21, 2016 · 5 comments

Comments

@yaakua
Copy link

yaakua commented Apr 21, 2016

使用domeos/server:1.2.2 版本的镜像,绑定gitlab时出现异常,见下图

1

另外发现存在跨域调用的问题。好像是要在当前页面直接Ajax异步请求到gitlab的服务器地址,存在跨域请求不通。

@fridayis
Copy link
Contributor

@yaakua 这是给gitlab服务器发送的请求,获取用户token,可以测试一下server所在服务器能否获取gitlab上的用户信息

@yaakua
Copy link
Author

yaakua commented Apr 21, 2016

@fridayis 我已经发现问题了是因为我访问的IP地址和代码里面获取到的IP地址不一样,导致代码里面需要设置允许跨域请求的IP地址不一致导致的。

建议将这个设置允许跨域请求的代码改造一下,直接获取当前服务器的IP应该不准确,我的服务器外网IP是在机器上获取不到的。必须从请求头里面获取。

@fridayis
Copy link
Contributor

@yaakua gitlab地址是在全局配置中设置的,应该跟是否跨域没有关系。方便留一下联系方式么,咱们可以线下交流

@yaakua
Copy link
Author

yaakua commented Apr 21, 2016

@fridayis QQ:595995462

@zhujunqi1
Copy link

@fridayis hi 我也遇到类似的问题,能不能加一下qq 线下请教一下??

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

3 participants