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

pull/1/head
Ludovic Dubost 2020-01-04 02:03:30 +01:00
parent 4cfa391a17
commit 1065ef5d4c
1 changed files with 2 additions and 0 deletions

View File

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