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
You should be able to jam your own variables into
request.cf
? So you could set request.cf.serviceBinding = true
I'm not sure if this is meant to be allowed but I was able to set the cf-worker header myself
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
cool - being able to pass things with request.cf is also very interesting!