Disable the CDM referer interceptor to make the reverse proxy work.
This commit is contained in:
parent
0161c5d532
commit
e92e5f637e
|
@ -8,6 +8,12 @@
|
|||
notify: Restart cloudera-scm-server
|
||||
tags: [ 'cdh', 'hadoop', 'cdh_m_conf' ]
|
||||
|
||||
- name: Comment the CsrfRefererInterceptor because it blocks the reverse proxy
|
||||
lineinfile:
|
||||
path: '/usr/share/cmf/webapp/WEB-INF/spring/mvc-config.xml'
|
||||
state: absent # not required. choices: absent;present. Whether the line should be there or not.
|
||||
regexp: '<bean class="com.cloudera.server.web.cmf.csrf.CsrfRefererInterceptor" />'
|
||||
|
||||
- name: Install the Cloudera Manager defaults
|
||||
template: src=cloudera-scm-server.default.j2 dest=/etc/default/cloudera-scm-server owner=root group=root mode='0444'
|
||||
notify: Restart cloudera-scm-server
|
||||
|
|
Loading…
Reference in New Issue