connect() function doesn't work
# pages-help
f
I used the connect() function in my project to connect to the website I hosted on Cloudflare CDN. It was able to work well, but it seems to have had problems since yesterday. The connect() function cannot establish a connection. After testing, I found that the connect function cannot connect to any IP belonging to cloudflare (AS13335), and at the same time, connecting to other websites is ok
w
Yup. You should be using fetch for HTTP or the IP/unproxied record for TCP access
f
The https requests are opened by client.If I can't use connect () function and use fetch () instead, it will need mitm, which is not very realistic
And I didn't see this in the document. This problem confused me for a long time