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.
Posts: 1
Joined: Thu Dec 09, 2010 4:21 pm

You should run examples from any kind of server or place tree xml in the save folder as .html file
Posts: 2476
Joined: Mon Jan 25, 2010 10:08 am

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"
Posts: 1
Joined: Fri Nov 16, 2012 10:36 am

Return to dhtmlxTree

Who is online

Users browsing this forum: No registered users and 1 guest