I have a backend application(let's call it App A) with a grahql endpoint. It's a NodeJs with Nest framework. The queries on the frontend are generated with codegen (https://the-guild.dev/graphql/codegen). Both frontend and backend are hosted together. The calls from the generated queries are working perfectly, and they have a proper header for authentication. Now, I changed my generated queries to send the calls to another backend app(App B), which should check for some user rights, and if the rights are correct should call next my backend app(App A), where the graphql endpoint is.
My problem is that this calls don't have any authentication headers anymore( the calls that reach App B form frontend), not sure how to generate them from my frontend.