title: 'Access-Control-Allow-Origin' error in MeteorJS
body: <p>I am using Laravel Lumen to create an API for my MeteorJS App. This is my code inm y meteorJS on <code>imports\api\tasks.js</code></p>
  
  <pre><code>...
  import { HTTP } from 'meteor/http';
  import { WebApp } from 'meteor/webapp';
  
  if (Meteor.is_client) {
  
      // Calling our Meteor server's function 
      // and simply storing data into current session
      Meteor.call('fetchDataFromUrl', function (error, response) {
          Session.set('external_server_data', response)
      });
  
  
      // Providing meteor data for template (it renders on data received)
      Template.data.server_data = function () {
          return Session.get('external_server_data');
      };
  
  }
  
  if (Meteor.is_server) {
  
      Meteor.methods({
          // Declaring a method
          retrieve_doc_types: function () {
              this.unblock();
              return Meteor.http.get(api_url);
          }
      });
  
  }
  
  Meteor.methods({
  
    'tasks.insert'(make, model, year) {
      check(make, String);
      check(model, String);
      check(year, String);
  
      if (! Meteor.userId()) {
        throw new Meteor.Error('not-authorized');
      }
  
      HTTP.call("POST", "http://localhost:8000/api/v1/car",
            {data: {"make":make, "model":model, "year":year}},
          function (error, result) {
  
            if (!error) {
                console.log(result);
            } else{
  
                console.log("http post error");
            };
          });
    },
  
  ....
  </code></pre>
  
  <p>but when I got this error:</p>
  
  <pre><code>XMLHttpRequest cannot load http://localhost:8000/api/v1/car. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 405.
  tasks.js:81 http post error
  </code></pre>
  
  <p>do anyone have an idea? I am new with MeteorJS</p>