Can NGINX call another service before dispatching
Solution 1:
Yes, it is possible.
Take a look at this example. In short you can use auth_request directive to fetch the desired additional headers. Use proxy_set_header to add additional headers to the main request.