title: Webhook configuration with Gitlab
body: <p>I have a Jenkins pipeline project and I would like to trigger a build every time a push to the Gitlab repository where the code is hosted is performed.</p>
  
  <p>On Jenkins I have installed the Gitlab plugin and the Git plugin and I have configured the Gitlab section (Manage Jenkins -> Configure System) by adding the Gitlab host URL (<a href="https://gitlab.com" rel="nofollow noreferrer">https://gitlab.com</a>) and the Gitlab API token previously generated on Gitlab: if I perform a test connection, everything is OK, as expected.</p>
  
  <p>The problem is on Gitlab: I go to Settings -> Integrations and I try to configure a webhook by adding the Jenkins project URL that I have found in the project configuration (highlighted below):</p>
  
  <p><a href="https://i.stack.imgur.com/7pzTi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7pzTi.png" alt="enter image description here"></a></p>
  
  <p>But there is a problem: it seems that requests to localhost from Gitlab are not allowed.</p>
  
  <p><a href="https://i.stack.imgur.com/JtqSB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JtqSB.png" alt="enter image description here"></a></p>
  
  <p>It seems that to avoid this problem is necessary to activate an option (Allow requests to the local network from hooks and services), but this option is available only if I have a Gitlab server managed by myself. Instead, my project is hosted on gitlab.com and so this option cannot be modified.</p>
  
  <p>There is any workaround or alternative solution to configure a webhook in my case?</p>