title: No 'Access-Control-Allow-Origin' header on requested resource: Meteor server-side
body: <p>I asked a question here: <a href="https://stackoverflow.com/questions/34097411/angular-meteor-enabling-cors-for-client-side-http-services">https://stackoverflow.com/questions/34097411/angular-meteor-enabling-cors-for-client-side-http-services</a>
  and since then have learned that I should be able to solve the titular error by making calls from the server-side instead. I have done this, even using access-control-origin headers, and I'm still receiving 
  "XMLHttpRequest cannot load" and
  "Origin '<a href="http://localhost:3000" rel="nofollow noreferrer">http://localhost:3000</a>' is therefore not allowed access"
  I'm  also using the example query provided to me directly from the API providers themselves after I contacted them. </p>
  
  <p>here's what I have on the server:</p>
  
  <pre><code>if(Meteor.isServer){
  Meteor.methods({
  'inFetch': function(){
    var method = 'GET';
    var url = "http://food2fork.com/api/search?     
  key=[thiskey]&amp;q=carrot";
    var options = {
      headers: {
        'Access-Control-Allow-Origin': '*',
            'Access-Control-Allow-Methods': 'POST, PUT, DELETE, GET, OPTIONS',
            'Access-Control-Request-Method': '*',
            'Access-Control-Allow-Headers': 'Origin, X-Requested-With, Content-         
  Type, Accept, Authorization'
      }
    }
  this.unblock();
  Meteor.http.call(method, url, options, function(error, result){
  if (error) {
       console.log('SERVER ERRR');
       return "error";
     } else{
       console.log('SERVER RESULT');
       return result;
   }
  });
  
  }
  });
  </code></pre>
  
  <p>And here's what I have on the client:</p>
  
  <pre><code>function inFetch(){
    // food2fork get //
    $scope.inHits=[];
    $scope.preInHits=[];
    $scope.inHits= Meteor.call("inFetch");
  </code></pre>
  
  <p>}</p>
  
  <p>I have been working on this problem for a long, long time and learned a lot about   HTTP request access, so I'm stumped that the above isn't fixing this, ala:</p>
  
  <p><a href="https://stackoverflow.com/questions/14320610/how-to-make-an-api-call-using-meteor">How to make an API call using meteor</a></p>
  
  <p>EDIT: removed link to original question</p>