Reputation: 892
I know this is a known problem but it seems new version v5.11.0 brings another problem related to CORS.
According to this documentation, you just need to configure CORS behavior to make call from application out of I.S. domain.
I did this configuration, but it doesn't work. When I call endpoint /oauth2/oidcdiscovery/.well-known/openid-configuration
, I get following error:
Access to XMLHttpRequest at 'https://xxxx:9443/oauth2/oidcdiscovery/.well-known/openid-configuration' from origin 'http://localhost:4200' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Does anybody facing same problem?
Thanks,
Upvotes: 1
Views: 621
Reputation: 1515
You need to follow this cors configuration given in this doc. From 5.11 onwards, IS has changed the cors configuration model. Check the new changes done for 5.11 here. So the configuration mentioned in this documentation is no longer valid
Upvotes: 2