Origin null is not allowed by Access-Control-Allow-Origin

I can’t run any of the examples because when I try to load the example I get the following:

XMLHttpRequest cannot load file:///C:/rails/public/dhtmlxTree/samples/common/tree3.xml. Origin null is not allowed by Access-Control-Allow-Origin.

The example runs fine in IE but I need it to work in Chrome and Firefox as well.

You should run examples from any kind of server or place tree xml in the save folder as .html file

This is a known issue with Chrome.

Here’s the link in the bug tracker:

Issue 40787: Local files doesn’t load with Ajax

On Windows, Chrome might be installed in your AppData folder: “C:\Users\AppData\Local\Google\Chrome\Application”

Before you execute the command, make sure all of your Chrome window is closed and not otherwise running. Or, the command line param would not be effective. “chrome.exe --allow-file-access-from-files”