Fix security policy for ooslide and oodoc which would break x2t wasm export on Chrome

pull/1/head
Ludovic Dubost 5 years ago
parent 4cfa391a17
commit 1065ef5d4c

@ -92,6 +92,8 @@ var setHeaders = (function () {
const h = [ const h = [
/^\/pad(2)?\/inner\.html.*/, /^\/pad(2)?\/inner\.html.*/,
/^\/sheet\/inner\.html.*/, /^\/sheet\/inner\.html.*/,
/^\/ooslide\/inner\.html.*/,
/^\/oodoc\/inner\.html.*/,
/^\/common\/onlyoffice\/.*\/index\.html.*/ /^\/common\/onlyoffice\/.*\/index\.html.*/
].some((regex) => { ].some((regex) => {
return regex.test(req.url) return regex.test(req.url)

Loading…
Cancel
Save