I am new to java script and angularjs. As per angular documents and other references I understood that with the help of interceptor we can handle adding auth header to every http calls etc. But how can I restrict interceptor to add header only for specific http calls?. How can i use interceptor to intercept only specific http calls? how can I customize interceptor?
Asked
Active
Viewed 57 times
0
-
1take a look at what they did here : https://github.com/cloudspace/angular_devise – nicolas Nov 25 '14 at 04:00
-
1You intercept all calls, whether your interceptor acts on them is what you need to decide. Look at interceptor API, what parameters are available for you to filter what you want. – Chandermani Nov 25 '14 at 04:11
-
Possible duplicate of [How can I create a XMLHttpRequest wrapper/proxy?](http://stackoverflow.com/questions/4809342/how-can-i-create-a-xmlhttprequest-wrapper-proxy) – Paul Sweatte Mar 15 '16 at 01:32