0

I have an angularjs web application and it has so many files. We use $http and $resource for get, post, put and delete. I want to add user info to all request headers from angularjs. In angularjs, is there configuration like this? Or any suggestion for aspect like solution?

1 Answer 1

2

Yes, you can use request interceptors for this.

See here for some examples: http://www.webdeveasy.com/interceptors-in-angularjs-and-useful-examples/

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.