title: XMLHttpRequest cannot load <instagram OEMBED URL>. No 'Access-Control-Allow-Origin' header is present on the requested resource
body: <p>i am developing OEMBED app where i want to request some OEMBED api to get me JSON data. I am using node/ express in backend and angular in front end.</p>
  
  <p>Here is my server code.
  <code></p>
  
  <pre><code>var express = require("express");
  var app =express();
  var allowCrossDomain = function(req, res, next) {
      res.header('Access-Control-Allow-Origin', '*');
      res.header('Access-Control-Allow-Methods', 'GET,PUT,POST,DELETE');
      res.header('Access-Control-Allow-Headers', 'Content-Type, Authorization');
  
      // intercept OPTIONS method
      if ('OPTIONS' == req.method) {
        res.send(200);
      }
      else {
        next();
      }
  };
  app.use(allowCrossDomain);
  app.use(express.static(__dirname + '/js'));
  app.get('/',function(req,res,next){
    res.sendfile('index.html');
  });
  app.listen(3000,function(){
    console.log("We are listening at 3000");
  });
  </code></pre>
  
  <p></code>
  and my angular code
  <code></p>
  
  <pre><code>app.controller('status_controller',function($scope,$http){
    $scope.add_status=function(){
        $http.get("http://api.instagram.com/oembed?url=http://instagram.com/p/V8UMy0LjpX/&amp;format=json").success(function(data){
              console.log(data);
            });
      };
  });
  </code></pre>
  
  <p></code>
  After executing i am getting this error in console.</p>
  
  <p><code></p>
  
  <pre><code>XMLHttpRequest cannot load http://api.instagram.com/oembed?
  url=http://instagram.com/p/V8UMy0LjpX/&amp;format=json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://&lt;&lt;localhost&gt;&gt;:3000' is therefore not allowed access. 
  </code></pre>
  
  <p></code>
  I have tried node package such as cors and express-cors and i also tried suggestion from similiar post in SO but nothing helps me. </p>
  
  <p>I know i have to do something with CORS but don't know how.</p>
  
  <p>i am using chrome and localhost development environment.</p>