WSO2 身份服务器 5.11.0 (Linux) - OAuth2 - CORS

WSO2 Identity Server 5.11.0 (Linux) - OAuth2 - CORS

我知道这是一个已知问题,但似乎新版本 v5.11.0 带来了另一个与 CORS 相关的问题。

根据此 documentation,您只需配置 CORS 行为即可从 I.S 外的应用程序进行调用。域名。

我做了这个配置,但是没有用。当我调用端点 /oauth2/oidcdiscovery/.well-known/openid-configuration 时,出现以下错误:

    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.

有人遇到同样的问题吗?

谢谢,

您需要遵循此 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 中给出的 cors 配置 不再有效