Skip to content
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

set default headers after login #189

Open
phken91 opened this issue May 29, 2020 · 1 comment
Open

set default headers after login #189

phken91 opened this issue May 29, 2020 · 1 comment

Comments

@phken91
Copy link

phken91 commented May 29, 2020

Hi, new to ngx-restangular
would like to ask, can we set the default headers (etc: {authorization: 'Bearer xxx'})
after user login?

for the example provide in README.md, it initial default headers in app.module.ts

thanks for advices

@iamsrujal
Copy link

Hello lordzpipo,
restangular-fixed

You can use setDefaultConfig() in each and every page where you've initialized Restangular.

I solved this issue. I hope this will help you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants