Uncaught SecurityError: Failed to execute 'replaceState' on 'History':

Uncaught SecurityError: Failed to execute 'replaceState' on 'History':

I tried to re-build my APK for android using android studio. when installed on cell phone...it stuck on blank page with loading icon in middle (jquery loading icon).


when i try to open the html directly in chrome... it also stays on blank page with loading icon and shows me following error in console 
Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL 'file:///C:/webappe/Portal/index.html' cannot be created in a document with origin 'null'.


when i created a virtual directory and open index.html from browser... its working properly.

But after i create APK and install it on android phone... it stays on blank page with loading... Please help... 


this code was working before. 

when i did google i found its chrome changes.... and per forum in one post its a new feature and chrome is not going to change it.


Help will be much appreciated.