Google Identity Error in HCL Volt MX Foundry - Trial

Please complete the details below then remove this line:


**Volt MX Version:v10
**Operating System:HCL Volt MX Foundry - Trial
**Database (if appropriate): MySQL
**Server: ? HCL Volt MX Foundry - Trial


Problem/Query:
Não consigo usar ao serviço de autenticação do google. Eu consigo testar positivo no console do servidor foundry:


, mas no app/browser da erro. segue erro no print da console:
Access to XMLHttpRequest at ‘https://100004433.auth.demo-hclvoltmx.net/oauth2/token?provider=GoogleAuth’ from origin ‘https://m100004433001.demo-hclvoltmx.net’ has been blocked by CORS policy: Response to preflight request doesn’t pass access control check: The value of the ‘Access-Control-Allow-Origin’ header in the response must not be the wildcard ‘*’ when the request’s credentials mode is ‘include’. The credentials mode of requests initiated by the XMLHttpRequest is controlled by the withCredentials attribute.
Print do setup do serviço de auth no foundry:

Hi @cristech1970

Thanks for posting the question in this forum. We understood that you are using Demo account and trying to access a identity service from a external browser/app and receiving this error but where as if you try to test the same from Foundry console it is working fine with out any issue.

Can you please navigate to below path and check what setting is enabled.

Open HCL Demo Account–>Api Management–>Apis–>identity–> Service Configuration–>Enable Cross-Origin Resource Sharing (CORS) whether this option is enabled?

Also please confirm whether you are trying to access this identity service from with in the domain or from external domain. If you are accessing this identity service from external domain then you need to enable this option and publish the app and then test the issue.

1 Like

Perfect!


Thanks!!!