<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br></div><div>Hey All,</div><div><br></div><div>After googling around a bit and some trial and error, I was able to find a work around for the CORS issue. &nbsp;One can start up chrome using a disable web security flag[1]. &nbsp;As per the link, &nbsp;</div><div><br></div><div>On OS X:</div><div><br></div><div>/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome —disable-web-security</div><div><br></div><div>On Windows:</div><div><br></div><div>Chrome.exe —disable-web-security</div><div><br></div><div>The link also outlines steps for Firefox, but I haven’t tried it.</div><div><br></div><div>Brandon</div><div><br></div><div>[1]&nbsp;<a href="https://blog.nraboy.com/2014/08/bypass-cors-errors-testing-apis-locally/">https://blog.nraboy.com/2014/08/bypass-cors-errors-testing-apis-locally/</a></div><br><div><div><br></div><div>On Jun 14, 2015, at 11:39 AM, Brandon Gaisford &lt;<a href="mailto:bgaisford@punagroup.com">bgaisford@punagroup.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><br>I’m following the Hawtio README, the setup seems fine and all is running.<br><br>Node starts:<br><br>$ gulp<br>[11:31:55] Server started <a href="http://localhost:2772">http://localhost:2772</a><br>[11:31:55] LiveReload started on port 35729<br><br>When I make updates in the Hawtio src tree, the server reloads, all looks good.<br><br>The gateway and apiman services are running:<br><br>GET: <a href="http://localhost:8080/apiman/system/status">http://localhost:8080/apiman/system/status</a> &nbsp;(had to login)<br><br>{"up":true,"version":"1.1.4-SNAPSHOT"}<br><br>Decided to start up firebug in Firefox and see if I could seed anything. &nbsp;Looks like an error early in UI startup:<br><br>Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at <a href="http://localhost:8080/apiman/system/status">http://localhost:8080/apiman/system/status</a>. (Reason: CORS header ‘Access-Control-Allow-Origin' missing).<br><br>What is the correct way to get around this CORS stuff during Node/Hawtio development?<br><br>Thanks,<br><br>Brandon<br>_______________________________________________<br>Apiman-user mailing list<br><a href="mailto:Apiman-user@lists.jboss.org">Apiman-user@lists.jboss.org</a><br>https://lists.jboss.org/mailman/listinfo/apiman-user<br></blockquote></div><br></body></html>