The code that does the request follows, I'm using HttpClient and JWT:
getIdeias(): Observable<Ideia[]>{
const headers = new HttpHeaders({
'Content-Type': 'application/json',
'Authorization': 'eyJhbGciOiJIUzUxMiJ9.eyJpYXQiOjE1MjYzOTY1MjUsInN1YiI6ImdnQGdnLmNvbSJ9.bgIpmQTA5505aGIEaaIdtLe3EjDUGjL8zkBJRG8w9VTIIyuWkbKvTbvCm8fVSGgXc0VCa5_Pop2qGxb7hVyqWQ'
});
return this.http.get<Ideia[]>(this.url,{headers})
.map(res => res);
}