Skip to content

Commit 23d5896

Browse files
committed
Update index.js
1 parent 162ef68 commit 23d5896

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

backend/index.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ const app = express()
77
const functionsConfig = functions.config()
88

99
const cors = require('cors')
10-
var corsOptions = {
11-
origin: true
12-
}
1310

1411
// Routes
1512
const rootRouter = require('./routes/root')
@@ -47,7 +44,7 @@ const mongoose = require('mongoose')
4744
const ATLAS_URI = functionsConfig.mongo.uri
4845

4946
app.use(body_parser.json())
50-
app.use(cors(corsOptions))
47+
app.use(cors())
5148

5249
mongoose.connect(ATLAS_URI, {useNewUrlParser: true, useUnifiedTopology: true, useCreateIndex: true, 'useFindAndModify': false}, function(err) {
5350
if(err) {

0 commit comments

Comments
 (0)