'SocketIO client works in browser only

I have 2 demo socketIO clients that connect to a server. The one written in Node does not work, my suspicions are that the request is not sent in HTTP/2 as the website sends a cloudfare recaptcha page with 403 status code if you send a request with HTTP/1.

How can I fix this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source