Chrome 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 site About Us Learn more about Stack Overflow the company not allowed to load local resource chrome //extensions/ Business Learn more about hiring developers or posting ads with us Stack Overflow Questions
Not Allowed To Load Local Resource Chrome Javascript
Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, chrome not allowed to load local resource blob just like you, helping each other. Join them; it only takes a minute: Sign up Error “Not allowed to load local resource: file://sharedpath” up vote 5 down vote favorite 1 The below code is not working
Chrome Not Allowed To Load Local Resource File //
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 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 chrome not allowed to load local resource image 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.1k116575 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 even refuse to cross from the http protocol to the file protocol, so you'd better make sure you open this locally using the file protocol if you want to do this stuff at all. share|improve this answer answered Sep 10 '15 at 18:44 Justin 416215 add a comment| Your Answer draft saved draft discarded Sign
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 site About Us Learn more about Stack
Not Allowed To Load Local Resource Android
Overflow the company Business Learn more about hiring developers or posting ads with us
Not Allowed To Load Local Resource C#
Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a not allowed to load local resource html community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Chrome Extension: How to solve “Not allowed to load local resource” error upon content script http://stackoverflow.com/questions/32509068/error-not-allowed-to-load-local-resource-file-sharedpath injection up vote 2 down vote favorite I tried to inject jQuery to content page to make easy access to DOM elements. The code was something like below chrome.tabs.executeScript(tabId, { file: "jquery.min.js"} ,function(){ chrome.tabs.executeScript(tabId, { file: myOwnScript.js});} ); It was all fine on Windows, but on Ubuntu, in content page window, I always get console error message saying "Not allowed to load local resource: file:///****/jquery.min.map" I noted it was talking about http://stackoverflow.com/questions/23410754/chrome-extension-how-to-solve-not-allowed-to-load-local-resource-error-upon-c *.map but not *.js There are some more mysteies: 1. There is no error message on myOwnScript.js 2. My extension works well even though this message keeps showing at each page load. I made plenty searches on Google but didn't find similar case. My questions is, 1. What is the reason of such error? 2. Should I take it as a serious error? My enviroment is as below OS : Ubuntu 14.04, with LXDE desktop Chrome : 34.0.1847.132 (Didn't try other configurations because I am not that good at customizing Linux :) google-chrome-extension share|improve this question asked May 1 '14 at 15:21 user2686101 8018 possible duplicate of jQuery's jquery-1.10.2.min.map is triggering a 404 (Not Found) –Teepeemm Jul 4 '15 at 3:04 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted Previous versions of Jquery have a comment pointing to the map file (so that a bug in jquery.min.js can be translated to a bug in the readable jquery.js). You can safely delete this comment, or upgrade to a more recent version of Jquery, which has removed this comment (for exactly this reason). See also this answer. share|improve this answer answered May 1 '14 at 15:48 Teepeemm 2,74441632 2 See also stackoverflow.com/questions/18365315/… –rsa