Modify headers #1058
Unanswered
zeeshan-at-extra-year
asked this question in
Q&A
Modify headers
#1058
Replies: 2 comments
-
You need to add
Here is an example of what I did. const ApiClient = new GeneratedApiClass(
new HttpClient({
baseApiParams: {
headers: {
// This will be added on all requests.
'x-custom-header': 'foo',
},
},
}),
); |
Beta Was this translation helpful? Give feedback.
0 replies
-
If you are using axios template then you can add axios interceptor for that => https://axios-http.com/docs/interceptors |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I am using Sentry for distributed tracing in our system. On the browser side, I have some headers that I need to append/modify before the request is sent to the server. How can I achieve this?
Beta Was this translation helpful? Give feedback.
All reactions