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
Chaika
Chaika3mo ago
Is the domain on the same zone/root domain as the worker executing? Is your SSL/TLS Mode Full (Strict)?
Chaika
Chaika3mo ago
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.
Helge
HelgeOP3mo ago
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!
Want results from more Discord servers?
Add your server