<div dir="ltr">Hi all,<div><br></div><div>It&#39;s me again!</div><div>So, I was looking for some solutions about my issue, and I found this: <a href="https://issues.jboss.org/browse/APIMAN-516">https://issues.jboss.org/browse/APIMAN-516</a></div><div><br></div><div>It seems this issue still occurs with me. I tries to send some headers via ajax, and get this response:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><font color="#e06666">XMLHttpRequest cannot load <a href="https://apiman.url">https://apiman.url</a>. Response to preflight request doesn&#39;t pass access control check: No &#39;Access-Control-Allow-Origin&#39; header is present on the requested resource. Origin &#39;<a href="http://192.168.56.22:8080">http://192.168.56.22:8080</a>&#39; is therefore not allowed access. The response had HTTP status code 500.</font></blockquote><div><br></div><div>Here is the Response Headers:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Connection:close<br>Content-Type:application/json<br>Date:Wed, 28 Dec 2016 13:54:08 GMT<br>Server:Apache/2.4.18 (Ubuntu)<br>Transfer-Encoding:chunked<br>X-Gateway-Error:API not public.<br>X-Powered-By:Undertow/1</blockquote><div><div><br></div><div>and</div><div><br></div><div>Here is the Request Headers:</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Accept:*/*<br>Accept-Encoding:gzip, deflate, sdch, br<br>Accept-Language:pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4<br>Access-Control-Request-Headers:authorization, x-api-key<br>Access-Control-Request-Method:GET<br>Connection:keep-alive<br>Host: apiman.url<br>Origin:<a href="http://192.168.56.22:8080">http://192.168.56.22:8080</a><br>Referer:<a href="http://192.168.56.22:8080/app">http://192.168.56.22:8080/app</a><br>User-Agent:Mozilla/5.0 ...<br>Query String Parameters<br>view source<br>view URL encoded</blockquote><div><br></div><div>Does anyone has the same problem?</div><div><br></div><div>Best regards,</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><span style="font-family:&quot;times new roman&quot;;font-size:16px">---<br><b>Celso Agra</b></span></div></div></div></div></div>
</div></div>