<div dir="ltr"><div>I addressed this for Celso over JIRA.</div><div><br></div><div>Summary:</div><div><br></div><div>- In general, if you&#39;re using CORS you should probably use the query parameter to transmit your access token (if you have one). This is because of a limitation to CORS preflight request phase which never transmits custom headers.</div><div><br></div><div>- A separate issue was a bug (now fixed on master) where a data structure would cause certain header-value fields to be mixed up in specific circumstances.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 December 2016 at 14:10, Celso Agra <span dir="ltr">&lt;<a href="mailto:celso.agra@gmail.com" target="_blank">celso.agra@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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" target="_blank">https://issues.jboss.<wbr>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" target="_blank">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" target="_blank">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.<wbr>8,en-US;q=0.6,en;q=0.4<br>Access-Control-Request-<wbr>Headers:authorization, x-api-key<br>Access-Control-Request-Method:<wbr>GET<br>Connection:keep-alive<br>Host: apiman.url<br>Origin:<a href="http://192.168.56.22:8080" target="_blank">http://192.168.56.22:<wbr>8080</a><br>Referer:<a href="http://192.168.56.22:8080/app" target="_blank">http://192.168.56.22:<wbr>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><span class="HOEnZb"><font color="#888888"><div><br></div>-- <br><div class="m_-8271549169174132758gmail_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>
</font></span></div></div>
<br>______________________________<wbr>_________________<br>
Apiman-user mailing list<br>
<a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/apiman-user" rel="noreferrer" target="_blank">https://lists.jboss.org/<wbr>mailman/listinfo/apiman-user</a><br>
<br></blockquote></div><br></div>