【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..._第1张图片

 

报错:

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed..._第2张图片

 

 

 

错误原因:

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

 

解决方法:

1.登录管理员账号

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed..._第3张图片

 

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

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

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed..._第4张图片

 

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

 

完成后:

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed..._第5张图片

 

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

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed..._第6张图片

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

 

 

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

【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed..._第7张图片

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

 【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed..._第8张图片

 

 

 

OK  解决!!!

 

转载于:https://www.cnblogs.com/sxdcgaq8080/p/10592806.html

你可能感兴趣的:(【GitLab】gitlab上配置webhook后,点击测试报错:Requests to the local network are not allowed...)