fix(cors): Turning CORS *on* by default

This commit is contained in:
Chris Troutner
2019-02-08 15:45:30 -08:00
parent 3c59913a41
commit 92d0339212
+2 -1
View File
@@ -42,7 +42,8 @@ async function startServer () {
modules(app)
// Enable CORS for testing
// app.use(cors({origin: '*'}))
// THIS IS A SECURITY RISK. COMMENT OUT FOR PRODUCTION
app.use(cors({ origin: '*' }))
// MIDDLEWARE END