-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Override headers not working #11
Comments
Could it be related to angular/angular#20554? |
It's possible but I wouldn't rule out the problem being within this library itself. Can you post your code? |
This is my custom api.service (grabbed mostly from your demo):
The token constant is correctly populated with the right access_token, but the request returned has no header in it. |
@masiorama, very sorry for the long delay in getting back to you on this issue. I'm taking more time into keeping this library in a fully working and maintained state. Please reply here if you don't hear a response from me by Wednesday regarding a fix. I believe I was able to put an auto-login via refresh_token grant type in a personal project that was a much simpler approach. I'll try to also update the readme to include that method as well. Thanks again for your patience! |
Thanks, I'm gonna look forward to it. |
Hello there @0xMatt, did you have time to handle it? Thanks in advance. |
Hello, I'm trying to add auth header to my request, but it seems it gets lost at this point (ngx-request.js):
headers param is correctly populated with
Object {Authorization: "Bearer 2f8e3907-93c5-4cd1-a81b-554d4811a675"}
,and override param is undefined.
The problem is at the point when the script create the new http_1.HttpHeaders object.
The returned object has:
HttpHeaders {normalizedNames: Map(0), lazyUpdate: null, lazyInit: }
Any hint? Thanks in advance!
The text was updated successfully, but these errors were encountered: