Dux
Dux

Reputation: 89

Why cannot I send multiple WWW-authenticate header

I am sending multiple WWW-authenticate headers with php: first Negotiate and second NTLM, but browsers receive only the latter one. The front-end web server is Nginx. The back-end web server is Apache, that serves PHP-scripts. What should I do to send both headers?

Upvotes: 1

Views: 167

Answers (1)

Dux
Dux

Reputation: 89

Got it solved. I should have set the second argument to the header function as false. header('WWW-authenticate: NTLM',false);

Upvotes: 1

Related Questions