Share via

CORS issue when accessing https://{ADFS_SERVER}/adfs/userinfo

Vaidhis VelanDev 1 Reputation point
2021-06-15T12:30:09.26+00:00

We are able to sucessfully login and get the token using the following code,

oauthService.clientId = 'd3263663-7950-4f48-99a9-ad10d7907245';
oauthService.loginUrl = 'https://{ADFS_SERVER}/adfs/oauth2/authorize';
oauthService.issuer = 'https://{ADFS_SERVER}/adfs';
oauthService.scope = "openid profile";
oauthService.responseType = 'id_token token';

But by using the token, we have called the userinfo API - https://{ADFS_SERVER}/adfs/userinfo

But it shows CORS error. anything to be done on ADFS Server for this issue.

Microsoft Security | Active Directory Federation Services

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.