Commit c57c9d90 authored by NGPixel's avatar NGPixel

fix: disable cors

parent 05aad5b9
......@@ -130,7 +130,7 @@ module.exports = {
path: '/graphql-subscriptions'
}
})
this.servers.graph.applyMiddleware({ app: WIKI.app })
this.servers.graph.applyMiddleware({ app: WIKI.app, cors: false })
},
/**
* Close all active connections
......
......@@ -42,8 +42,8 @@ module.exports = async () => {
// ----------------------------------------
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) {
app.enable('trust proxy')
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment