Im connecting to the Xero oauth server 'https://login.xero.com/identity/connect/authorize' through an Angular 7 app using the angular-oauth2-oidc
package.
In my authConfig i have the following properties
export const authConfig: AuthConfig = {
issuer: 'https://login.xero.com/identity/connect/authorize',
redirectUri: 'http://127.0.0.1:2114/xerocallback',
clientId: 'XXXXXXXXXX647C2ABBAXXXXXXXXXX',
scope: 'openid profile email offline_access',
responseType: 'code',
};
However, as soon as i initialize the oauth service
import { OAuthService } from 'angular-oauth2-oidc';
this.oauthService.configure(authConfig);
i get the following CORS error
Access to XMLHttpRequest at 'https://login.xero.com/identity/connect/authorize/.well-known/openid-configuration' from origin 'http://localhost:2114' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
any idea of what im doing incorrectly, any suggestions would be welcomed