Merge pull request #3 from opalmay/revert-2-dev

Revert "a"
pull/3768/head
opalmay 6 years ago committed by GitHub
commit f15d3efe5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -130,7 +130,7 @@ module.exports = {
path: '/graphql-subscriptions'
}
})
this.servers.graph.applyMiddleware({ app: WIKI.app, cors: false })
this.servers.graph.applyMiddleware({ app: WIKI.app })
},
/**
* Close all active connections

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

@ -250,7 +250,7 @@ module.exports = {
const list = $(node).contents().toArray()
list.forEach(item => {
if (item.type === 'text') {
const rawText = $(item).text().replace(/\r?\n|\r/g, '')
const rawText = $(item).text()
if (mustacheRegExp.test(rawText)) {
$(item).parent().attr('v-pre', true)
}

Loading…
Cancel
Save