mirror of
https://github.com/requarks/wiki.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #6 from opalmay/revert-3-revert-2-dev
Revert "Revert "a""
This commit is contained in:
commit
543092a250
@ -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')
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ module.exports = {
|
||||
const list = $(node).contents().toArray()
|
||||
list.forEach(item => {
|
||||
if (item.type === 'text') {
|
||||
const rawText = $(item).text()
|
||||
const rawText = $(item).text().replace(/\r?\n|\r/g, '')
|
||||
if (mustacheRegExp.test(rawText)) {
|
||||
$(item).parent().attr('v-pre', true)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user