UNABLE TO PASS HEADERS TO DJANGO FROM NGINX
We hosted webserver as Nginx + IDCS Cloudgate Authentication and Application hosted on DJANGO, configured proxy as below.
location /app {
idcs_cloudgate on; # CG Enabled
proxy_pass http://<IP>:8000;
proxy_pass_request_headers on;
proxy_set_header Authorization $http_authorization;
proxy_pass_header Authorization;
proxy_set_header Cookie $http_cookie;
proxy_pass_header Cookie;
proxy_set_header Remote_User $remote_user;
proxy_pass_header Remote_User;
}
Can't able to get headers from Django request object.
Thanks,
Narendra.