Enabling the option “Allow requests to the local network from web hooks and services” by automation in gitlab

Hi … i want to enable “Allow requests to local network from webhooks and service” using any automation way but not manual step in gitlab. I am using 13.4.1-ce edition. Anyone helpme plz …