Manav Rathi 2024-04-15 15:23:01 +05:30
parent 057fe9bbb1
commit 720e84ba1f
No known key found for this signature in database

View file

@ -113,6 +113,7 @@ const setupRendererServer = () => serveNextAt(rendererURL);
const registerPrivilegedSchemes = () => {
protocol.registerSchemesAsPrivileged([
{
// Taken verbatim from next-electron-server's code (index.js)
scheme: "ente",
privileges: {
standard: true,
@ -125,14 +126,15 @@ const registerPrivilegedSchemes = () => {
{
scheme: "stream",
privileges: {
// standard: true,
// TODO(MR): Remove the commented bits if we don't end up
// needing them by the time the IPC refactoring is done.
// Prevent the insecure origin issues when fetching this
// secure: true,
// supportFetchAPI: true,
standard: true,
secure: true,
allowServiceWorkers: true,
// Allow the web fetch API in the renderer to use this scheme.
supportFetchAPI: true,
corsEnabled: true,
// Allow it to be used with video tags.
// stream: true,
},
},
]);