Sunday, May 19, 2024
192
rated 0 times [  196] [ 4]  / answers: 1 / hits: 79281  / 14 Years ago, mon, march 7, 2011, 12:00:00

I am working on some Javascript to run locally on my PC. I am using a jQuery CSV plugin (http://plugins.jquery.com/project/csv) to load load a csv file into javascript arrays. The script is simple:



$(function(){
$.get(file.csv, function(data){
stuff = $.csv()(data);
})
})


In Firefox it works fine but in Chrome it says Origin null is not allowed by Access-Control-Allow-Origin. What does that mean? I find all sorts of threads about cross-server stuff related to this error but I am just working with local files.


More From » google-chrome

 Answers
122

Chrome doesn't believe that there's any common relationship between any two local files.



You can start it with the option --allow-file-access-from-files to tell it you disagree.



Thanks to the ascendant master Nick Craver for this info when I asked essentially the same question some time ago.


[#93390] Saturday, March 5, 2011, 14 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
frederickmohamedw

Total Points: 21
Total Questions: 123
Total Answers: 105

Location: The Bahamas
Member since Tue, Apr 27, 2021
3 Years ago
frederickmohamedw questions
Wed, Sep 23, 20, 00:00, 4 Years ago
Sat, Jul 18, 20, 00:00, 4 Years ago
Sun, Apr 26, 20, 00:00, 4 Years ago
Sat, Jan 11, 20, 00:00, 4 Years ago
Fri, Dec 27, 19, 00:00, 4 Years ago
;