I also got this working on Vercel in 3 minutes, while I’m struggling for hours to make it work on Cloudflare.
I really wanted to give a try CF workers but if I’m unable to make it work I don’t know what else to do.
Can someone from support show me that the above code can technically work on Cloudflare? Using what config/workaround?
# Error 525
Ray ID: 6d9eb373ca1b40b1 • 2022-02-07 18:32:27 UTC
## SSL handshake failed
## What happened?
Cloudflare is unable to establish an SSL connection to the origin server.
## What can I do?
### If you're a visitor of this website:
Please try again in a few minutes.
### If you're the owner of this website:
It appears that the SSL configuration used is not compatible with Cloudflare. This could happen for a several reasons, including no shared cipher suites. [Additional troubleshooting information here.](https://support.cloudflare.com/hc/en-us/articles/200278659)
Cloudflare Ray ID: **6d9eb373ca1b40b1** • Your IP: 2a01:cb00:ca6:de00:59c3:19b8:ed3:9294 • Performance & security by [Cloudflare](https://www.cloudflare.com/5xx-error-landing)
@thomas4 I don’t really know, I’m not a sysadmin to be sure. I think I used a network tracing tool the other day and they may be on Cloudflare (host or cdn/proxy I can’t tell).
Why does it matter anyway? I don’t want my site to be down if this third-party API decides to migrate from/to Cloudflare in the future this should work no matter the host they chose and IMHO this is a bug in Cloudflare if all other hosts are able to call that API but not Cloudflare.
I can’t easily ask them technical details (support is not so technical) and neither ask them to use another host or change their settings just for me.
Personally I’d appreciate if Cloudflare offered at least settings to decide on SSL exceptions on a per-site/domain/url granularity (and I mean, the fetch() target site, not my own site/domain/url)