在gitlab中添加webhook报如下错误

URL ‘http://jenkins.cmig.host/project/doc’ is blocked: Requests to the local network are not allowed

解决方式如下:

在管理员界面,依次点击Settings > Outbound requests 将Allow requests to the local network from hooks and services勾上即可,如下图