Skip to content

Instantly share code, notes, and snippets.

@aniketbhatnagar
Created October 22, 2014 13:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aniketbhatnagar/3c6c9bc7d748f8e33f37 to your computer and use it in GitHub Desktop.
Save aniketbhatnagar/3c6c9bc7d748f8e33f37 to your computer and use it in GitHub Desktop.
Proxy pass CDH 5 manager
If you attempt to proxy pass CDH 5 Manager using apache, you may run into following error:
2014-06-29 08:43:02,977 WARN [600353515@scm-web-6:csrf.CsrfRefererInterceptor@68] Rejecting request originating from x.x.x.x for http://x.x.x.x:7180/cmf/parcel/validate with referrer blah
To resolve the issue, just set ProxyPreserveHost to On.
@scaret
Copy link

scaret commented Jul 26, 2017

I met with the same problem and here's what I found:

I changed the HTTP header host and referer to Capitalized Host and Referer and everything works.

According to HTTP protocol, HTTP header keys should be case-insensitive, but Cloudera don't think so

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment