file:// not working for me

9,044 views
Skip to first unread message

Dan Jones

unread,
Jul 22, 2014, 3:22:47 PM7/22/14
to tincr-for-ch...@googlegroups.com
I just found Tincr, and wanted to use it to watch a local HTML file. But when I tried to use it with a file:// URL, it failed to update. If I understood the documentation correctly, it should just work with file:// URLs without any configuration.

So, I checked the console for the background page, and found this:
Native file support successfully loaded nativeSupport.js:5
XMLHttpRequest cannot load file:///C:/Users/path/to/file.html?r=4383065. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, chrome-extension-resource. background.html:1
Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///C:/Users/
path/to/file.html?r=4383065'. zepto1.0rc1.js:2
XMLHttpRequest cannot load file:///C:/Users/
path/to/file.html?r=1873894. Cross origin requests are only supported for protocol schemes: http, data, chrome-extension, https, chrome-extension-resource. background.html:1
Uncaught NetworkError: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'file:///C:/Users/
path/to/file.html?r=1873894'. zepto1.0rc1.js:2

Definitely strange errors. Not really a CORS request.

I'm using this on Chrome 38.0.2096.0 dev-m on Windows 7.

Conrad Taylor

unread,
Jul 27, 2014, 10:31:31 PM7/27/14
to tincr-for-ch...@googlegroups.com
Hi, I'm seeing the similar issue on OS X 10.10 with the following Chrome browsers:

Chrome Version 38.0.2101.0 dev (64-bit)

Chrome Canary Version 38.0.2106.0 canary (64-bit)

anbu cse

unread,
Nov 26, 2014, 8:01:37 AM11/26/14
to tincr-for-ch...@googlegroups.com
Hi Jones,

  I got the similar error. I got an solutions for this, We cannot use Routing in Angular Js by keeping it in your filesystem. (i.e)file:///C:/Users/path/to/file.html?r=4383065' If you run with this URL u will get error. The route provide will use http protocol. So you have to put your code inside the localhost and then run from browserusin "http://localhost/rest of your URL" . Dont run it from the folder directly

john raja

unread,
May 29, 2016, 11:22:02 AM5/29/16
to Tincr for Chrome Devtools, d...@danielrayjones.com
HI anbu cse, thanks for ur help.

Reply all
Reply to author
Forward
0 new messages