Detect when worker was invoked via service binding

Hi there, how do I detect whether my worker was invoked via a HTTP Route or via a service binding from another worker? I would like to skip auth + implement custom logic in the latter scenario
1 Reply
Cyb3r-Jak3
Cyb3r-Jak32y ago
I don't believe there is an automatic way to get that it was called via service binding. Typically people add a secret header to requests coming from a service binding
Want results from more Discord servers?
Add your server