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

This commit is contained in:
Ludovic Dubost 2020-01-04 02:03:30 +01:00
parent 4cfa391a17
commit 1065ef5d4c

View File

@ -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)