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" when redirecting to app:// or file:// URIs #1514
Comments
+1 |
I currently have the same issue. |
+1, having the same issue. What I've tried so far:
None of these solutions seem to work, is oAuth authentication via node-webkit even possible? |
Hello, I'll look to fix this issue in the next version. |
Is there any update on this? I can't figure out how to implement Github Oauth because it can't redirect to a local app://app/file |
@Dshankar I hacked this by redirecting to my github pages and watch the changes of window.location.href. A little tricky. |
With the commit, the problem can be fixed by |
👍 |
I am having the same "Not allowed to load local resource" issue, except that it is with some of my js.map files in my normal index.html file. Everything else loads fine, but my map-files are not allowed. Can I use the addOriginAccessWhitelistEntry approach? If that is the case, how? For reference:
|
+1 I have the same problem of @stephan-nordnes-eriksen . |
@JacopoDaeli My solution: compile your javascript stuff in "production mode", and you won't get the .map files (aka. "brunch watch -P" if you use brunch). |
Thanks @stephan-nordnes-eriksen. Is there a reason about this problem? |
I was not able to find a true solution to it. I think it has to do with security settings, but I was never able to solve it. |
I have the same issue with 0.8.6 version of node-webkit, and I cant solve the problem with any recomendation here and other post. I open a new windows with a server page in other domain (like oauth), and I want to redirect to the local page, and the error say: "Not allowed to load local resource! How I make to solve this?. how I make to apply this example of @rogerwang
UPDATE: I try to do this: But I had the next error:
Thanks |
+1 for backporting this to 0.8.6 if possible. |
Sorry this is a bit of a bad bug report as it's hard to provide sample code, but the use-case is really simple. I have a nw app that loads a HTML page with a link on it with this href:
That URL is a tiny express app that does the following:
So what should happen is that clicking the button ends up redirecting back to the index page. Instead what happens is that there is an error:
I've tried this on nw v0.8.4 and v0.9.0-rc1.
Any help much appreciated, as this is stopping me from setting up an OAuth login.
The text was updated successfully, but these errors were encountered: