Já conheço a utilização das API's do MKAUTH, o problema é que quando eu crio um código seja em Java, JavaScritpt etc... para fazer requisição ao servidor para obter algum dado em JSON aparece um erro que eu acho que seja devido aos cabeçalhos HTTP e também um erro denominado CORS.
Estes são os erros que aparecem, sendo elas com os arquivos do zip que o Pedro postou ou sendo com os códigos criados por mim... Sempre dão este mesmo erro:
Erro:
Failed to load resource: the server responded with a status of 401 (Unauthorized)
planos.html:1 Access to XMLHttpRequest at 'http://192.10.67.197/api/empresa/listAll' from origin 'null' 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.
2192.10.67.197/api/plano/listAll:1 Failed to load resource: the server responded with a status of 401 (Unauthorized)
planos.html:1 Access to XMLHttpRequest at 'http://192.10.67.197/api/plano/listAll' from origin 'null' 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.
Gostaria de saber se alguém sabe uma solução ou se poderiam ser criadas novas API's para que pudesse ser realizadas conexões/alterações e etc no sistema do MK-AUTH para integração do MK-AUTH com outros sistemas. Já tentei diversas maneiras e ainda não consegui.



Respostas