diff --git a/server/app.js b/server/app.js index 013a095..9e885ae 100644 --- a/server/app.js +++ b/server/app.js @@ -50,10 +50,14 @@ app.register(helmet, { } }) -if (config.originFrontend) { +if (config.originFrontend !== null) { app.register(cors, { origin: config.originFrontend }) +} else { + app.register(cors, { + origin: false + }) } uploadProviderInit(app)