I don’t think it’s possible, since the context variables or meta data aren’t populated in the pre plugin middleware. You have a better chance of using policy metadata or adding them as temporary headers
What’s the goal? I see target, would that be target_url?
I see there is external KV for Target but, I wanted to know for config_data where I can use it as in middleware or in virtual endpoint I can use hardcoded json init then what is the use case for config_data.