On Saturday, 18 August 2018 22:21:33 UTC+5:30, eshwar chettri wrote:
>
> Hi,
> I'am new to angular , I want to make Gmail Api authentication with angular 
> 6. Currently I'am trying to authenticate through spring boot but I'am 
> getting an CORS error, Could any one help me with some example or reference.
> below is the error I'am getting
>
> gmailAuth(url:string){ //This url I'am getting from spring boot controller
> // window.open(url,"_blank" );
>   
>     let tokenHeader = new Headers({
>     'Content-Type' : 'application/json',
>     'x-auth-token' : localStorage.getItem('xAuthToken')
>   });
> console.log(url);
>   return this.http.post(url, {headers : tokenHeader});
> }
>
> [image: 1.PNG]
>
> [image: console.PNG] <about:invalid#zClosurez>
>
> [image: 3.PNG][image: 2.PNG]
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to