0
이 코드 (angular2) 데와 외부 소스입니다 :더 JWT 토큰 인증되지는 angular2
let headers = new Headers({'Content-Type': 'application/json'});
headers.append('Authorization', this.authService.currentUser.token)
let options = new RequestOptions({ headers: headers });
return this.http.get(this.url + 'quote/' , options)
this.url = '/'
(로컬 요청), 내가 헤더에 권한이 :
this.url = 'http://212.227.201.82/'
일 때 인증 토큰이 사라집니다.
어떻게 외부 요청에 대한 헤더 인증을 포함 할 수 있습니다? 당신의 도움에 감사합니다