Or well, it doesn’t disallow it, but it doesn’t allow httpd to make TCP connections.
To fix this temporarily run the following:
togglesebool httpd_can_network_connect
To fix this permanently (reboot persistent):
setsebool -P httpd_can_network_connect=1
Thanks to Simeon Says.. (new window)