Skip to content

Commit bf3d47a

Browse files
committed
added cors
1 parent 31b0a49 commit bf3d47a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

app/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
"use strict";
22

33
var express = require("express"),
4+
cors = require("cors"),
45
app = express();
56

67
var webapps = require("./routes/webapps"),
78
deploy = require("./routes/deploy");
89

910

10-
11+
app.use(cors());
1112
app.use("/webapps",webapps);
1213
app.use("/deploy",deploy);
1314

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "webhooked",
3-
"version": "0.0.2",
3+
"version": "0.1.0",
44
"description": "A WebHook Client for github",
55
"main": "index.js",
66
"scripts": {
@@ -34,6 +34,7 @@
3434
},
3535
"dependencies": {
3636
"config": "*",
37+
"cors": "2.4.x",
3738
"express": "4.x",
3839
"jsonparser": "0.2.x",
3940
"mongoose": "3.8.x",

0 commit comments

Comments
 (0)