Skip to content

Commit

Permalink
use cors
Browse files Browse the repository at this point in the history
  • Loading branch information
mycrobe committed Nov 11, 2015
1 parent 397f939 commit 6d5ab34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

var SwaggerExpress = require('swagger-express-mw');
var express = require('express');
var cors = require('cors');

var app = express();
app.use(cors());

//var fs = require('fs');
//var yaml = require('js-yaml');

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"main": "app.js",
"dependencies": {
"JSONStream": "^1.0.6",
"cors": "^2.7.1",
"csv-stringify": "0.0.8",
"express": "^4.12.3",
"gramene-mongodb-config": "^1.48.5",
Expand Down

0 comments on commit 6d5ab34

Please sign in to comment.