mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-11-23 04:14:16 +03:00
fix: allow file protocol streaming (#4441)
This commit is contained in:
parent
2521f2ed12
commit
872dc3521b
@ -18,6 +18,20 @@ protocol.registerSchemesAsPrivileged([
|
||||
},
|
||||
]);
|
||||
|
||||
protocol.registerSchemesAsPrivileged([
|
||||
{
|
||||
scheme: 'file',
|
||||
privileges: {
|
||||
secure: false,
|
||||
corsEnabled: true,
|
||||
supportFetchAPI: true,
|
||||
standard: true,
|
||||
bypassCSP: true,
|
||||
stream: true,
|
||||
},
|
||||
},
|
||||
]);
|
||||
|
||||
const NETWORK_REQUESTS = ['/api', '/ws', '/socket.io', '/graphql'];
|
||||
const webStaticDir = join(__dirname, '../resources/web-static');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user