Closed wiwat-tharateeraparb closed 10 years ago
I have Redis with user and password in ACL but when submit
xhr = new XMLHttpRequest() xhr.open("GET", "http://hostname:7379/KEYS/*",true); xhr.setRequestHeader("Authorization","Basic "); xhr.send(null);
And receive "Request header field Authorization is not allowed by Access-Control-Allow-Headers." in Chrome.
Anyone knows how to fix this?
Should add Authorization in http_response_set_header() in http.c.
Authorization
Added, thank you!
I have Redis with user and password in ACL but when submit
xhr = new XMLHttpRequest() xhr.open("GET", "http://hostname:7379/KEYS/*",true); xhr.setRequestHeader("Authorization","Basic");
xhr.send(null);
And receive "Request header field Authorization is not allowed by Access-Control-Allow-Headers." in Chrome.
Anyone knows how to fix this?