Hi
I’m trying to load the ClientID in Angular with TypeScript. The whole OAuth2 solution works. I have a token. But as soon as I want to do the verify, for a clientID, nothing works anymore.
My token:
Bud verify dosn’t work. My code:
OnGetUser() {
const headerss = new HttpHeaders();
headerss = headerss.set('Authorization', 'Bearer ' + this.bearerToken);
this.http.get('https://esi.tech.ccp.is/verify', {headers: headers}).pipe(first()).subscribe((user: any) => {
console.log(user);
}, (error) => {
console.log(error);
});
}
The response is always a CORS failure. The error:
What’s my problem?
Gruss
Roland