Javascript client classes IE8 CORS error

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.

Javascript client classes IE8 CORS error

Postby ASOL » Thu Oct 25, 2018 12:23 pm


I have to use IE8 compatibility mode in my aspx Site and im trying to implement the PTV functions with Javascript Client Classes.
Now im trying initialize the xMapClient and set the credentials and there Comes the error: "This browser does not support CORS with basic authentication." xmap-client.js (259,5)

Code: Select all
  mapClient = new XMapClient('');
            mapClient.setCredentials(xtok, token);

Im not really sure how to solve the CORS Problem in ie8.
Posts: 5
Joined: Thu Oct 25, 2018 9:32 am

Re: Javascript client classes IE8 CORS error

Postby Oliver Heilig » Thu Oct 25, 2018 1:38 pm


we don't support IE8 for xServer-JavaScript client anymore. I recommend using the xMap-1 WMS servlet instead PTV clients, so you don't have any CORS issues (even with IE8). Read here for samples how to include them into browser maps. ... ate/xmap-1

Or use the new rest/tile API for xMap-2 ... ilerplate/

For all other xserver1/2 APis i recommend to use plain ajax + jQuery instead of the PTV xServer clients, see ... -json-api/

Oliver Heilig
Chief Developer Logistic Services
PTV GROUP - Germany
User avatar
Oliver Heilig
Posts: 139
Joined: Tue May 13, 2014 12:10 pm
Location: Karlsruhe, Germany

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