Remove CORS hack now that the envoy proxy removes the need for it

This commit is contained in:
Andrew Kingston 2021-04-07 10:37:26 +01:00
parent 4748ceb118
commit f4ed1812e4
2 changed files with 0 additions and 3 deletions

View File

@ -83,7 +83,6 @@
"@budibase/client": "^0.8.9",
"@budibase/string-templates": "^0.8.9",
"@elastic/elasticsearch": "7.10.0",
"@koa/cors": "^3.1.0",
"@koa/router": "8.0.0",
"@sendgrid/mail": "7.1.1",
"@sentry/node": "5.19.2",

View File

@ -1,5 +1,4 @@
const Koa = require("koa")
const cors = require("@koa/cors")
const destroyable = require("server-destroy")
const electron = require("electron")
const koaBody = require("koa-body")
@ -13,7 +12,6 @@ const Sentry = require("@sentry/node")
const fileSystem = require("./utilities/fileSystem")
const app = new Koa()
app.use(cors())
// set up top level koa middleware
app.use(