ngx-jsonapi | JSON API client library | JSON Processing library
kandi X-RAY | ngx-jsonapi Summary
kandi X-RAY | ngx-jsonapi Summary
JSON API client library for Angular 5+ :: Production Ready
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of ngx-jsonapi
ngx-jsonapi Key Features
ngx-jsonapi Examples and Code Snippets
Community Discussions
Trending Discussions on ngx-jsonapi
QUESTION
I have a working interceptor in Angular 5. It's registered in App.module's providers and correctly intercepts all requests made from the application.
The problem is that it doesn't intercept the requests made from the libraries used by the app.
I'm using an open source library (NGX-Jsonapi), and need the interceptor to provide a token in every request that the library makes to the back-end.
Someone faced the same issue?
EDIT: the library uses HttpClient.
...ANSWER
Answered 2017-Dec-13 at 14:08With version 4.3, angular added a new service HttpClient
.
With version 5, angular deprecated the old service Http
.
The interceptor only works with HttpClient
.
You can be sure the libraries you have that are not intercepted, use the old Http
. Pay attention, Http
will probably be removed with angular 6!
If you want to make sure every call is intercepted by your interceptor, you need to upgrade your dependencies to their latest versions.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ngx-jsonapi
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page