If you are trying with IS version 5.11, you have to apply this config given in [1] to deploymet.toml file. From 5.11 onwards we are using a new cors configuration model [2]. So[1] is applicable only for IS5.11.0 onwards. So applying the config given in the doc [1] will not work for prior versions.
Since you are using IS5.10.0 (if it is not a 5.10.0 wum updated pack), add the below configs to web.xml.j2 file located <IS_HOME>/repository/resources/conf/templates/repository/conf/tomcat/web.xml.j2.
<filter-name>CORS</filter-name>
<filter-class>com.thetransactioncompany.cors.CORSFilter</filter-class>
<init-param>
<param-name>cors.allowOrigin</param-name>
<param-value>*</param-value>
</init-param>
<init-param>
<param-name>cors.exposedHeaders</param-name>
<param-value>Location</param-value>
</init-param>
<init-param>
<param-name>cors.supportedMethods</param-name>
<param-value>GET, HEAD, POST, DELETE, OPTIONS, PATCH, PUT</param-value>
</init-param>
</filter>
<filter-mapping>
<filter-name>CORS</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping>
If you are using a 5.10.0 wum pack, then you need to add the config to deployment.toml file. Refer to the git issue[3]
[1]https://github.com/wso2/identity-apps#run-in-dev-mode
[2]https://wso2.com/blogs/thesource/cors-with-wso2-identity-server-5.11/
[3]https://github.com/wso2/carbon-kernel/pull/2698
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…