I set basic auth in my nginx
location / {
auth_basic "Restricted Area";
auth_basic_user_file /etc/nginx/.htpasswd;
}
So after i saved and restart nginx. The browser uses the Authorization header to pass the basic auth
But my front application also uses this header (Authorization) to create http requests to the server, causing a conflict.
Is there anyway to let nginx use another header for basic auth?
for example: Authorization_basic