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

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

Requests to the local network are not allowed

操作如下:

报错:

错误原因:

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

解决方法:

1.登录管理员账号

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

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

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

完成后:

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

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

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

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

 

OK  解决!!!

原文地址:https://www.cnblogs.com/sxdcgaq8080/p/10592806.html