New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not allowed to load local resource #13528
Comments
👋 Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines. |
I got the same bug. how do we fix it? I had tried several approaches |
@jabreuar Don't know how to fix this. And no reply from developer team. Opened this issue a month ago and no update |
@Robbyn666 not working!! I have edited the package.json inside This is the error i'm getting after reloading: |
@Robbyn666 Still not getting it. This is my package.json |
@Robbyn666 Well i'm loading like this But i'm trying to load it like yours but getting error |
@isurendrasingh I am using a quick start angular+electron from https://github.com/maximegris/angular-electron |
@isurendrasingh
|
confirming @alwaysloseall has the solution when using angular-electron |
I tried to fix this my whole day & finally found the solution,
|
@alwaysloseall I am using react with electron and your solution works too, thanks a lot. |
@tyrants666 which file is this? |
I solved this problem by loading the file like this: Also, make sure in angular.json file, you have the right "outputPath": "dist/app-name", |
You can also receive this generic error message when the file passed to the loadURL method is missing. If you're running into this on production, it's worth double checking your build files. Unless I'm overlooking something specific to Angular, you shouldn't ever be forced to disable webSecurity. |
Getting ERROR - "Not allowed to load local resource" after building my angular application when hosting with Github pages. |
@Mrinalaot for me it was some config in the package.json. I don't remember what exactly. But try to remove everything but dependencies, dev-dependencies, scripts, and add the rest step by step |
Yes, It does resolve the file:// problem. You are a world savior) |
Thanks man, You're our hero. |
Worked for me: |
Hi bro, where shoud I add this code? I am using
|
Still working bro, nice move! |
Expected Behavior
When the app launches, it displays the Angular 6 index page. But when the reload is done it displays the following error in console "Not allowed to load local resource".
When the reload is done, it shows:
The text was updated successfully, but these errors were encountered: