Forwarding headers #7655
Unanswered
AndreaCrotti
asked this question in
Q&A
Replies: 1 comment
-
Hi there, upvoting this question as very relevant. I'm having a Mesh v0 served as a Any advice would be much appreciated. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have to do something that I thought would be simple, but (probably also because I'm not a JS dev), I'm really struggling to make work.
We use the supergraph handler, and our meshrc.yaml config looks like this:
We have some plugins already to manipulate the request/response, however what I actually need now is a simple plugin that takes a set of allowed headers, loops over the headers in the response currently and if it's allowed actually send it back to the client in the actual response.
The problem I'm having is that I can never find a way to have both the headers from the original response and be able to modify the response going out at the same time, what magic incantation do I need to use to do that?
Also, it seems like something that should be available as plugin already, isn't there something I can reuse?
Thanks
Beta Was this translation helpful? Give feedback.
All reactions