Skip to content Skip to sidebar Skip to footer

Electron Not Allowed To Load Local Resource

Electron Not Allowed To Load Local Resource. In my angular.json the default configuration for outputpath was dist. Electron should be able to load local resources without disabling all security features.

Not allowed to load local resource · Issue 13528 · electron/electron
Not allowed to load local resource · Issue 13528 · electron/electron from github.com

Instead of containing the bundled code from my dist folder it contained all the project code (*.ts. Electron + angular 'not allowed to load local resource' on published version. Electron should be able to load local resources without disabling all security features.

// Issue Code Window = New.


You need register a file protocol to remove the file:/// prefix. If i have spaces in my app path (e.g. In my angular.json the default configuration for outputpath was dist.

I Was Getting The Not Allowed To Load Local Resource Error Because Webpack Hadn't Finished Writing The File Before I Was Trying To.


Now, i've created a distribution build for the react app, and made an electron build from that. File:///mypath/my application/application.app or file:///mypath/application 1.app), the html is not loaded and it raises the error not. Changed this section in main.ts from this:

The Problem Is That When I Now Run The App By Double Clicking In Finder I Get An Error In The Console Saying:


I also got the same issue i placed the below line before loading the file. Just change the browserwindow' options: **not allowed to load local.

Not Allowed To Load Local Resource.


Electron should be able to load local resources without disabling all security features. The index.html page does not even launch and the app generates an error with the message: There is a lot here that i don’t totally understand, and much that might be pointless or.

Import { Protocol } From Electron;


I think your index.html file is not. Electron + angular 'not allowed to load local resource' on published version. Solved this by doing 2 things:

Post a Comment for "Electron Not Allowed To Load Local Resource"