-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Default header for all requests #1170
Comments
There's not something at present that allows you to add a default header to all responses. |
how do we request a feature? |
You just did! 👍 |
This should be possible once interceptors are implemented. export const intercept: INTERCEPT = ($, respondTo, path, method) => {
return respondTo($).header("custom-header", "value");
} This is great timing, as I was already thinking about implementing interceptors this weekend. |
Thanks! Can you open another issue explaining about the CORS headers in more detail? There's no set release schedule, but I post a new release as soon as any non-trivial change is done. Hopefully I'll get your feature request and bug report both done and publish the next release this weekend. |
I need to add a default header to all response
for example
is there any way we can this default to all API responses.?
thanks
The text was updated successfully, but these errors were encountered: