Add Authorize to sensitive headers in zuul proxy

This commit is contained in:
Dave Syer
2016-03-02 16:16:48 +00:00
parent b8cbf4e637
commit 9ea64308cb
2 changed files with 2 additions and 2 deletions

View File

@@ -1263,7 +1263,7 @@ route, e.g.
routes:
users:
path: /myusers/**
sensitiveHeaders: Cookie,Set-Cookie
sensitiveHeaders: Cookie,Set-Cookie,Authorization
url: https://dowstream
----

View File

@@ -123,7 +123,7 @@ public class ZuulProperties {
private Boolean retryable;
private Set<String> sensitiveHeaders = new LinkedHashSet<>(
Arrays.asList("Cookie", "Set-Cookie"));
Arrays.asList("Cookie", "Set-Cookie", "Authorization"));
public ZuulRoute(String text) {
String location = null;