We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f6e7308 commit 9ffde9dCopy full SHA for 9ffde9d
app.js
@@ -2,6 +2,7 @@
2
"use strict";
3
4
var app,
5
+ cors = require('cors'),
6
express = require('express'),
7
exphbs = require('express-handlebars'),
8
hbs,
@@ -47,6 +48,8 @@
47
48
49
app = express();
50
51
+ app.use(cors());
52
+
53
// Configure handlebars template engine to work with moment
54
hbs = exphbs.create({
55
helpers: {
package.json
@@ -19,6 +19,7 @@
19
"dependencies": {
20
"async": "^1.5.0",
21
"body-parser": "^1.14.1",
22
+ "cors": "^2.8.1",
23
"express": "^4.13.3",
24
"express-handlebars": "^2.0.1",
25
"moment": "^2.10.6",
0 commit comments