In order to disable error:

Access to XMLHttpRequest at 'http://test:2021/api/GoogleMaps' from origin '' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

In Windows 10 first kill the chrome:

taskkill /F /IM chrome.exe

Start chrome like:

"C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-web-security --disable-gpu --user-data-dir=~/chromeTemp --allow-file-access-from-file.

Since I like web scrapping, my latest project you can see here, always I need to find a path to a specific node. Chrome make it easy:


If you try, in Google Chrome under Windows 8, to execute following statement:

if ("ontouchstart" in document.documentElement) {
  console.log("You can touch me")
} else {
  console.log("Cant touch this")

or as jsLint recommends:

if (document.documentElement.ontouchstart !== undefined) {
  console.log("You can touch me")
} else {
  console.log("Cant touch this")

(document.documentElement.ontouchstart is null if it exists, that is why we have to compare it with undefined, just don't use hasOwnProperty because it seems that it doesn't work on Android devices)

return value will be true, in Windows 7 return value is false

Few more things which you can test:

iOS (iphone/ipad) console:

typeof window.Touch

Windows 8 VM, Chrome Stable console:

typeof window.Touch

OSX, Chrome Stable, Safari latest, console:

typeof window.Touch

Taken from here.

In order to disable touch events on google chrome go to:


search for:

Enable touch events Mac, Windows, Linux, Chrome OS

Choose disable.