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.

Important notice when using xServer js samples with Chrome

Postby Oliver Heilig » Thu Apr 05, 2018 9:49 am

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
PTV GROUP - Germany

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

Return to PTV Webclients (Ajax, Leaflet, OpenLayers, WMS, ...) (Admin=LNM)

cron