Open KishanMaurya opened 3 years ago
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 https://github.com/bradtraversy/meanauthapp/issues/7#issuecomment-604824310
change your code like this
Originally posted by @DilshanDilipudara in https://github.com/bradtraversy/meanauthapp/issues/7#issuecomment-604824310