Olá Como passar um token na requisição ensinada?
constructor(http: Http) {
let stream = http.get('URL')
ATÉ 40% OFF
TÁ ACABANDO!
0 dias
0 horas
0 min
0 seg
Olá Como passar um token na requisição ensinada?
constructor(http: Http) {
let stream = http.get('URL')
voce pode passar o token pelo header
constructor(http: Http){
let cabecalho = new Headers()
cabecalho.append('token', 'seuToken')
let stream = http.get('url', {header: cabecalho})
}