You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by mo...@apache.org on 2019/09/10 20:45:43 UTC

[knox] branch master updated: KNOX-2011 - Don't block SET-COOKIE response header for Ranger UI (#144)

This is an automated email from the ASF dual-hosted git repository.

more pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/knox.git


The following commit(s) were added to refs/heads/master by this push:
     new 731d8ff  KNOX-2011 - Don't block SET-COOKIE response header for Ranger UI (#144)
731d8ff is described below

commit 731d8ff13f8ae7f376e911b01bcedc1cc2af246c
Author: Sandeep Moré <mo...@apache.org>
AuthorDate: Tue Sep 10 16:45:38 2019 -0400

    KNOX-2011 - Don't block SET-COOKIE response header for Ranger UI (#144)
---
 .../src/main/resources/services/rangerui/1.0.0/service.xml         | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/service.xml b/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/service.xml
index c170f97..28c67b8 100644
--- a/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/service.xml
+++ b/gateway-service-definitions/src/main/resources/services/rangerui/1.0.0/service.xml
@@ -32,5 +32,10 @@
             <rewrite apply="RANGERUI/rangerui/outbound/headers" to="response.headers"/>
         </route>
     </routes>
-    <dispatch classname="org.apache.knox.gateway.dispatch.DefaultDispatch"/>
+    <dispatch classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch" ha-classname="org.apache.knox.gateway.dispatch.ConfigurableDispatch">
+        <param>
+            <name>responseExcludeHeaders</name>
+            <value>WWW-AUTHENTICATE</value>
+        </param>
+    </dispatch>
 </service>