fix: stabilize tldraw whiteboard assets
This commit is contained in:
@@ -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:')
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user