mirror of
https://github.com/YunoHost/SSOwat.git
synced 2024-09-03 20:06:27 +02:00
revert: set "Authorization" headers not Proxy
This commit is contained in:
parent
0ff5cc6af7
commit
50db509330
1 changed files with 2 additions and 2 deletions
|
@ -429,8 +429,8 @@ end
|
|||
-- application underneath.
|
||||
function set_headers(user)
|
||||
local user = user or authUser
|
||||
-- Set `Proxy-Authorization` header to enable HTTP authentification
|
||||
ngx.req.set_header("Proxy-Authorization", "Basic "..ngx.encode_base64(
|
||||
-- Set `Authorization` header to enable HTTP authentification
|
||||
ngx.req.set_header("Authorization", "Basic "..ngx.encode_base64(
|
||||
user..":"..cache:get(user.."-password")
|
||||
))
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue