Fetch @ Cloudflare Workers
why if I make a request from Cloudflare Workers to my server (where I uploaded Origin Certificate and connected domain) on port 8443 (it seems to be allowed), I get “request timed out after 10000 ms”? from browser everything works fine.
3 Replies
Is the domain on the same zone/root domain as the worker executing? Is your SSL/TLS Mode Full (Strict)?
More recently there's a compat flag to enable this for non-same zone requests: https://developers.cloudflare.com/workers/configuration/compatibility-dates/#allow-specifying-a-custom-port-when-making-a-subrequest-with-the-fetch-api. It gets a little complex with the behavior, easiest path would probably be trying that flag/making your compat date newer then that (if not already) and ensuring your ssl/tls mode is Full Strict if running the worker on a custom domain/route
Cloudflare Docs
Compatibility dates | Cloudflare Workers docs
Opt into a specific version of the Workers runtime for your Workers project.
mode tried both Full and Full (Strict), but as for the domain - I forgot to connect domain to the worker... give me a second.
I both connected the domain and tried the flag. helped. thanks a lot!