fix: stabilize tldraw whiteboard assets

This commit is contained in:
lucaronin
2026-05-04 18:34:07 +02:00
parent 38ea51627d
commit e46613b82b
6 changed files with 42 additions and 3 deletions

View File

@@ -19,4 +19,11 @@ describe('Tauri Content Security Policy', () => {
expect(csp['object-src']).toContain('asset:')
expect(csp['object-src']).toContain('http://asset.localhost')
})
it('allows bundled tldraw translation JSON fetched from inlined data URLs', () => {
const config = JSON.parse(readFileSync(`${process.cwd()}/src-tauri/tauri.conf.json`, 'utf8'))
const csp = config.app.security.csp as Record<string, string>
expect(csp['connect-src']).toContain('data:')
})
})