浏览代码

HUE-8750 [core] Update knox dispatch for Ha

Jean-Francois Desjeans Gauthier 6 年之前
父节点
当前提交
a57ffd4073
共有 1 个文件被更改,包括 6 次插入1 次删除
  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"/>
     </route>
   </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>