【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

gitlab上配置webhook后,点击测试报错:

Requests to the local network are not allowed

操作如下:

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

报错:

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

错误原因:

gitlab 10.6 版本以后为了安全,不允许向本地网络发送webhook请求

解决方法:

1.登录管理员账号

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

2.最上面一排的  扳手 设置按钮--->进入左侧 设置---->网络---->

选择 允许webhooks和本机网络交互

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

勾选后,点击保存,退出!!!

完成后:

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

1.此时可以点击Test进行测试

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

对于 上面勾选的权限,测试结果如下,即代表成功!!!

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

2.对于未勾选的 权限 接口,点击测试

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

未授权的接口 测试 是这个结果!!!!!

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed

OK  解决!!!

上一篇: character showing up in files. How to remove them?


下一篇:关于Redis info的参数总结