问题描述
在添加Webhook时,产生了该错误:
Requests to the local network are not allowed
问题原因
原因在官方「Webhooks and insecure internal web services」文章已经解释,是为了防止内部无认证的服务被恶意请求。
解决方案
如果要解决这个问题,在管理员后台设置即可。以管理员帐号登录:
Admin Area -> Settings -> Network -> Outbound requests -> Allow requests to the local network from hooks and services
勾选「Allow requests to the local network from hooks and services」即可。
参考文献
WikiNotes/Requests to the local network are not allowed
gitlab使用webhook向jenkins发送请求,报错 Requests to the local network are not allowed
Webhooks and insecure internal web services
本文介绍了解决在配置Webhook过程中遇到的Requeststothelocalnetworkarenotallowed错误的方法。此问题通常出现在尝试从Webhook访问未经过认证的内部服务时。文章详细说明了如何通过管理员后台进行设置来允许此类请求。
958

被折叠的 条评论
为什么被折叠?



