Questions tagged [angular2-headers]
5 questions
2
votes
1 answer
Angular2 httponly cookie not saved when adding custom http headers
I've came to dead end with implementing and handling CORS issues between Angular2 application and Java backend API.
I am aware and know what are CORS requests, have implemented already in angular1 apps, but I can't make it work in Angular2 (Ionic2)…

Eagle
- 103
- 1
- 7
1
vote
2 answers
Angular 2 used with JQuery
I'm trying to use JQuery with Angular 2 Cli.
I installed JQuery by using npm install jquery --save and adding import $ from 'jquery/dist/jquery' to app.module.ts.
I get this error in Chrome Cannot find module 'jquery/dist/jquery'.). But I can…

ToDo
- 754
- 2
- 17
- 31
1
vote
0 answers
Angular 2: retrieve headers from response
I'm using observable to make request from a WS.
I want to get some specific headers, but I can't get them.
I found this discussion and followed the solution they proposed but, it doesn't work for me.
For example:
Into chrome tab network, my headers…

Radonirina Maminiaina
- 6,958
- 4
- 33
- 60
0
votes
1 answer
Get request not passing authorization header
I'm trying to pass a GET-request from my Angular front-end to my Spring boot back-end. I'm using JWT to authenticate everything and I'm using an HTTP-interceptor to add the token in the request header like this:
@Injectable()
export class…

ThijsFreeze
- 11
- 1
- 6
0
votes
1 answer
Angular 2: ERROR TypeError: .. is not a function
I am trying to use angualrio to read from an array from a json file following this tutorial getting-started-with-angular-2-step-by-step-6-consuming-real-data-with-http/.
However I am getting the error
ERROR TypeError: undefined is not a…

Abdelrahman Shoman
- 2,882
- 7
- 36
- 61