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

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

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

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

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

Loading…
Cancel
Save