0
I’m trying to update the requisitions Http
for HttpClient
in Angular. Currently the code is:
return this.http.get(`${this.url}/grupos`).map(res => res.json());
After researches I’m trying to update this way (unsuccessfully):
return this.httpClient.get(`${this.url}/grupos`, { headers: {'Content-Type': 'application/json'}});
I had some problems with mistakes in GET/Unauthorizing
I couldn’t fix.
To access this api you need some token?
– veroneseComS
I believe so, but in the current version no token is sent and works correctly, in what I want to complement followed the same logic of not working with tokens. You think that might be it?
– RWilhelm