mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 16:42:56 +00:00
refactor: update all
This commit is contained in:
committed by
Rainer Killinger
parent
31acec2a05
commit
ff9fb49deb
@@ -85,7 +85,7 @@ export async function configureApp(app: Express, databases: {[name: string]: Dat
|
||||
// TODO: See if it can handle options request with no content-type
|
||||
|
||||
// allow cors preflight requests on every route
|
||||
app.options('*', cors(corsOptions));
|
||||
app.options('*', [cors(corsOptions)]);
|
||||
|
||||
// only accept json as content type for all requests
|
||||
app.use((req, res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user