**Status Code:** 403 Forbidden

Running multiple services with docker compose on various backend URL using nginx.
Here is the configuration for keycloak

location /auth {
proxy_pass http://keycloak-container:8080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Host $server_name;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
Attached the image:
keycloak

Getting the following response:

Request URL: https://qa.XXX.com/auth/realms/master/protocol/openid-connect/login-status-iframe.html/init?client_id=account-console&origin=https%3A%2F%2Fqa.XXX.com
Request Method: GET
Status Code: 403 Forbidden
Remote Address: 45.77.144.143:443
Referrer Policy: no-referrer

when hitting the endpoint on browser. Getting the above response