-
Notifications
You must be signed in to change notification settings - Fork 346
Chrome XMLHttpRequest cannot load #4
Comments
Hi, |
"By default, file:// URIs cannot read other file:// URIs. This is an override for developers who need the old behavior for testing." --allow-file-access-from-files |
So it seems it solves the problem...? |
Might be worth putting this in the documentation, I just got burned by it. It'd be great if there were an alternative way to work around this that didn't involve passing command-line switches to Chrome, but I can't think of one off the top of my head. |
I placed a fixture html(qiu.html) under the path "spec/javascripts/fixtures" but I got a faild to load resource: Origin null is not allowed by Access-Control-Allow-Origin: what is wrong with my jasmine-jquery? Anyone can help me? |
(It should be |
I tried Chrome and Safari or even Firefox, the error still exist. After all I coped the code in qiu.html into the QiuSpecRunner.html and then deleted the sentence "loadFixtures('qiu.html')". Now it works very well! Thank you anyway! On Jul 19, 2013, at 12:07 PM, travis jeffery notifications@github.com wrote:
|
Could the same issue happen with Internet Explorer? My tests run fine in Firefox, yet in IE11 (v11.0.9600.17728, to be precise) I get the same number of failed tests as in Chrome, while tests that don't attempt to load fixtures work fine. Here's the error: Error: Fixture could not be loaded: [filename].html (status: error, message: Access is denied. |
Is there anyway to just use something like https://github.com/karma-runner/karma-html2js-preprocessor and then converting it back into a string. |
When trying to use loadFixtures() to load a local html file, Chrome (v7.0.517.41) returns this error:
Origin null is not allowed by Access-Control-Allow-Origin.
Is there a browser setting that I can tweak to get around this error? Firefox and IE both work fine.
The text was updated successfully, but these errors were encountered: