Open tmdude9586 opened 7 years ago
Looking source code i have found that:
I think passing headers should be like signalr.hubConnection(host, { headers: myHeaders })
Looks like my guess is not working
I just used query string to pass my headers in url. Passing qs instead of headers in my prior message as object will throw an error. I've created PR that fix that
I'm trying to connect to my hub, however it requires an Authorization header to be present. I'm looking through the code and documentation, and I cannot find anyway to add said header to the XMLHttpRequest that gets sent.
Due to this I get 401s during the connection. Is there any way to add headers currently?