Skip to content

change your code like this #55

@KishanMaurya

Description

@KishanMaurya

change your code like this

getProfile(){
    let headers = new Headers();
    this.loadToken();
    headers =   headers.append('Autherization', this.authToken);
    headers = headers.append('Content-Type', 'application/json');
    return this.http.get('http://localhost:3000/users/profile',{headers: headers})
    .map(res => res.json());

Originally posted by @DilshanDilipudara in #7 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions