javascript - jquery load and working off local hard drive -


in pinch, we're trying convert bunch of production ui files can zip , send else view locally via local hard drive.

we're trying avoid messing current jquery as can.

right now, pages using js includes of sorts such as:

#('idhere').load('some/local/htmlfile.html') 

this, alas, triggers console error of:

cross origin requests supported protocol  schemes: http, data, chrome-extension, https,  chrome-extension-resource. 

is there way around cross origin issue when requesting files local drive (ie, file: protocol?)

you can start chrome --disable-web-security parameter it.

here full explanation disable same origin policy in chrome


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -