detect if request originated from service binding

hi is there a way to determine if a request originated from a service binding? there doesn't seem to be a cf-worker header
4 Replies
Hard@Work
Hard@Work4w ago
You should be able to jam your own variables into request.cf? So you could set request.cf.serviceBinding = true
Khafra
KhafraOP4w ago
I'm not sure if this is meant to be allowed but I was able to set the cf-worker header myself
Hard@Work
Hard@Work4w ago
IIRC it would only be stripped out if it actually travels out of the Runtime, which a service binding request wouldn't So that tracks
Khafra
KhafraOP4w ago
cool - being able to pass things with request.cf is also very interesting!

Did you find this page helpful?