Browse Source

HUE-8750 [core] Update knox dispatch for Ha

Jean-Francois Desjeans Gauthier 6 years ago
parent
commit
a57ffd4073
1 changed files with 6 additions and 1 deletions
  1. 6 1
      tools/knox/hue/1.0.0/service.xml

+ 6 - 1
tools/knox/hue/1.0.0/service.xml

@@ -33,5 +33,10 @@
       <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/>
       <rewrite apply="HUE/hue/outbound/huerooturl" to="response.body"/>
     </route>
     </route>
   </routes>
   </routes>
-  <dispatch classname="org.apache.knox.gateway.dispatch.PassAllHeadersDispatch" />
+  <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>
 </service>