spring-cloud/spring-cloud-gateway

Include RewriteRequestHeader filter similar to RewriteResponseHeader

Open

#2,353 opened on 2021年8月30日

GitHub で見る
 (1 comment) (1 reaction) (0 assignees)Java (3,204 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (4,284 stars)
PR merge metrics
 (平均マージ 1d 21h) (30d で 18 merged PRs)

説明

When downstream systems have similar response headers resulting in persistent browser state, a solution could be to simply modify their value to make them unique (e.g. Set-Cookie). If you do so you need to do the reverse operation for request headers representing the same value (like Cookie) which is currently not available as a default filter.

A RewriteRequestHeaderGatewayFilterFactory similar to the existing RewriteResponseHeaderGatewayFilterFactory (equal Config) would solve the problem. Currently I wrote such a filter myself as a work around. As this filter is a reverse one of the existing one I would recommend to add it as a default functionality.

If approved I could help with a pull request for the functionality.

コントリビューターガイド