-
Notifications
You must be signed in to change notification settings - Fork 140
Configurable header forwarding for fragment requests #97
Comments
This would be a great contribution. Thanks in advance. |
@jmaicher Thanks for opening the issue.
The only problem with adding the headers in the options list is that
The other option which I can think of is requestFragment starts accepting the filterHeader function as part of a argument and you could tune the header function as per your needs. I am open to discussion. Let me know your thoughts. |
I would go for accepting |
@jmaicher thoughts? |
What about building the filtered request before calling requestFragment? |
@vigneshshanmugam I like the general idea of a @grassator 👍 on keeping the interface clean. Regarding the first argument check, is your intention to avoid breaking changes in the public API? If not, I'd rather go with just an argument object to keep the code cleaner. @lmineiro We also need to consider that |
The forwarded headers are currently hard-coded in https://github.com/zalando/tailor/blob/master/lib/filter-headers.js#L16.
This could be configurable via
Tailor(options)
with sane defaults. My particular use case is that tailor runs in a private, trusted network where headers are used for authentication.I'd be happy to contribute it myself if considered useful.
The text was updated successfully, but these errors were encountered: