Error Not Allowed To Load Local Resource
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this not allowed to load local resource javascript site About Us Learn more about Stack Overflow the company Business Learn more
Not Allowed To Load Local Resource Chrome
about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss not allowed to load local resource android Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Error “Not allowed
Not Allowed To Load Local Resource C#
to load local resource: file://sharedpath” up vote 5 down vote favorite 1 The below code is not working when running on server(nodejs) in chrome Open folder. I am getting the following error message in the developer tool: Not allowed to load local resource: file://sharedpath But when opening the same path(file://sharedpath) in the browser(new tab), I am able to see the folder structure not allowed to load local resource html of that path. The same is working fine in IE. Is this a problem with Chrome? Or is this a problem when running on the server? Can anyone suggest something on this issue? javascript angularjs node.js google-chrome internet-explorer share|improve this question edited Jan 8 at 7:55 R O M A N I A 12.4k116675 asked Sep 10 '15 at 18:18 Anudeep Kota 26112 1 As the error is trying to tell you, you're not allowed to do that. –SLaks Sep 10 '15 at 18:21 But IE is allowing the same thing. Can I know the reason? –Anudeep Kota Sep 10 '15 at 18:28 most browsers don't allow ajax in file:// protocol for security reasons. Install a local web server –charlietfl Sep 10 '15 at 18:40 How did you end up fixing this? I am facing the same issue. –harshit May 26 at 15:37 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote Make sure that your host is fully qualified: Source Try adding an additional slash: file:///sharedpath See this answer Specifically: Some browsers, like modern versions of Chrome, will ev
von GoogleAnmeldenAusgeblendete FelderNach Gruppen oder Nachrichten suchen
Starred by 5 users Reported by dirk.cit...@gmail.com, May 30 2014 Back to list Status: WontFix Owner: ---- Closed: https://bugs.chromium.org/p/chromium/issues/detail?id=379206 Jun 2014 Cc: tnakamura@chromium.org, guidou@chromium.org Components: Blink>WebRTC NextAction: ---- OS: Windows Pri: 2 Type: Bug Via-Wizard Needs-Feedback Sign in to add a comment UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 Example URL: Steps to reproduce the problem: 1. Have a local HTML page with JavaScript and WebRTC Audio not allowed downstream. The following works if the HTML page is delivered from a server but fails if the HTML page is loaded from the local file system: ... peerConnection.onaddstream = internalOnDownStreamAdded; function internalOnDownStreamAdded(data) { // If local, fails with: Not allowed to load local resource: blob:null/d9d5f7c1-493c-4d8c-a986-3e3135da5da3 audio.src = URL.createObjectURL(data.stream); } What is the expected behavior? Stream not allowed to should be played even if HTML page was loaded from the local file system. What went wrong? Fails if HTML page is loaded from the local file system. Later on "Not allowed to load local resource: blob:null/d9d5f7c1-493c-4d8c-a986-3e3135da5da3" occurs in the error console. Did this work before? N/A Is it a problem with Flash or HTML5? HTML5 Does this work in other browsers? N/A Chrome version: 35.0.1916.114 Channel: stable OS Version: 6.1 (Windows 7, Windows Server 2008 R2) Flash Version: Shockwave Flash 13.0 r0 A major problem is also, that it seems not to be possible to detect if setting the src url worked or failed. No JavaScript error is thrown which I could catch and reading the src url right after writing it returns "blob:null/ad1497ae-7498-47bc-b57b-3530b6d2b7e9". How can I detect that setting the url went wrong in order to show something helpful to the user? Is blob:null... already an indication that something went wrong and thus I have always to read the src url after