- commit
- 941441c31d64de5d30bf0c9e2d89806751737f40
- parent
- b122898acaa2d022c46a73b82ee99a0d44cdee53
- author
- Dami <dami.etoile@gmail.com>
| M | diagramzip-client-units/ | 3 | +++ |
| M | diagramzip-client-units/ | 2 | +- |
| M | diagramzip-client-units/ | 1 | + |
| M | diagramzip-client-units/ | 2 | +- |
@@ -29,4 +29,7 @@ for (const marker of ['diagram.zip:renderer:v1', 'MAX_SOURCE_LENGTH', 'MAX_OUTPU
2929 if (!frame.includes(marker)) throw new Error(`TikZ client protocol is missing ${marker}.`)3030 }3131 32+const headers = await readFile(new URL('../unit/_headers', import.meta.url), 'utf8')33+if (!headers.includes('Access-Control-Allow-Origin: *')) throw new Error('TikZ assets must allow the unique-origin worker to fetch the bundled files.')34+3235 console.log('TikZJax asset and protocol checks passed')@@ -1,7 +1,7 @@
11 const CHANNEL = 'diagram.zip:renderer:v1'22 const ENGINE = 'tikz'33 const VERSION = '@planktimerr/tikzjax@1.0.63'4-const BUILD = 'tikzjax-1.0.63-client-unit-2'4+const BUILD = 'tikzjax-1.0.63-client-unit-3'55 const MAX_SOURCE_LENGTH = 262_14466 const MAX_OUTPUT_LENGTH = 4_194_30477 const RENDER_TIMEOUT = 60_000@@ -1,4 +1,5 @@
11 /*2+ Access-Control-Allow-Origin: *23 Content-Security-Policy: default-src 'none'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: blob:; font-src 'self' data:; connect-src 'self'; worker-src 'self' blob:; frame-src 'none'; base-uri 'none'; form-action 'none'34 X-Content-Type-Options: nosniff45 Referrer-Policy: no-referrer