Skip to content

Instantly share code, notes, and snippets.

Avatar

Diego Alvarez d1egoaz

  • Shopify
  • Vancouver - Canada
View GitHub Profile
View link-home-manager-apps.sh
View learning_scala.org
@d1egoaz
d1egoaz / nodeMock.js
Last active Aug 29, 2015
simple node express example
View nodeMock.js
var express = require('express');
var request = require('request');
var app = express();
app.all('*', function(req, res, next) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
next();
});