|
@ -42,8 +42,8 @@ module.exports = async () => { |
|
|
// ----------------------------------------
|
|
|
// ----------------------------------------
|
|
|
|
|
|
|
|
|
app.use(mw.security) |
|
|
app.use(mw.security) |
|
|
app.use(cors(WIKI.config.cors)) |
|
|
|
|
|
app.options('*', cors(WIKI.config.cors)) |
|
|
|
|
|
|
|
|
app.use(cors({ origin: false })) |
|
|
|
|
|
app.options('*', cors({ origin: false })) |
|
|
if (WIKI.config.security.securityTrustProxy) { |
|
|
if (WIKI.config.security.securityTrustProxy) { |
|
|
app.enable('trust proxy') |
|
|
app.enable('trust proxy') |
|
|
} |
|
|
} |
|
|