We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44edd64 commit cf3c5e5Copy full SHA for cf3c5e5
templates/app/server/config/express.js
@@ -2,8 +2,6 @@
2
* Express configuration
3
*/
4
5
-'use strict';
6
-
7
import express from 'express';
8
import favicon from 'serve-favicon';
9
import morgan from 'morgan';
@@ -31,6 +29,7 @@ export default function(app) {
31
29
32
30
if(env === 'development' || env === 'test') {
33
app.use(express.static(path.join(config.root, '.tmp')));
+ app.use(require('cors')());
34
}
35
36
if(env === 'production') {
0 commit comments