Important notice when using xServer js samples with Chrome

This forum deals with any kind of web based client technology, whether it is the well known java script based Ajax servlet or the upcoming approaches such as Leaflet, OpenLayers and so on.
Post Reply
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Important notice when using xServer js samples with Chrome

Post by Oliver Heilig »

Hi all,

With the latest Chrome v65 you cannot run the samples from GitHub or CodeSampleBrowser directly by just opening the html file anymore! Chrome now doesn't support ajax request from local files. Read the discussion here:

https://developers.google.com/web/updates/2018/03/nic65

You now must either load the file from a web server or start chrome with the parameter

Code: Select all

--allow-file-access-from-files

Or just use Firefox or Edge :D

To start the html/js as web application, you can register the folder at your IIS or use Python with

Code: Select all

python -m SimpleHTTPServer 8000
This applies to all samples at GitHub or CodeSampleBrowser. I will document this for the GitHub samples.

Oli
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
User avatar
Oliver Heilig
Posts: 154
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany
Contact:

Re: Important notice when using xServer js samples with Chro

Post by Oliver Heilig »

All-Clear! The Lastest Chrome releases (> v66) reverted this behavior.

Oli
Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany

https://github.com/oliverheilig/
Post Reply