title: Setting up local to make ajax calls to node server
body: <p>I am sure that this question might be very obvious but not sure what to search for the answer. </p>
  
  <p>I have some local running client side code (on anvil server), which for those unfamiliar is a tool for loading static files simply on OSX (<a href="http://anvilformac.com/" rel="nofollow">http://anvilformac.com/</a>). So my site is for instance ... example.dev. </p>
  
  <p>I want this to talk to my node server running on local host 127.0.0.1:3000 (or whatever port).</p>
  
  <p>This is going to give me issues with cross domain (I think).</p>
  
  <p>How do I setup my local environment so that I can make this possible? Do I need to setup some apache server i.e MAMP? or some virtual machine to make this work?</p>
  
  <p>I also don't want to use JSONP. </p>
  
  <p>Thanks in advance. </p>
  
  <p>I.e making my request will return: XMLHttpRequest cannot load %3127.0.0.1:3000/user/listall. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, chrome-extension-resource. </p>
  
  <p>What headers do I need to set to get around this?</p>