kaozbender
kaozbender

Reputation: 11

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

I am working with an HTML website template I got a couple of months ago. I was creating a site and everything worked fine. Came back later to do some changes and now when I open my index.html file it only loads navbar, bottom and side borders.

The exact error is:

Uncaught SecurityError: Failed to execute 'replaceState' on 'History': A history state object with URL index url cannot be created in a document with origin 'null'.

Any suggestions?

Upvotes: 1

Views: 1117

Answers (1)

Stranded Kid
Stranded Kid

Reputation: 1395

Chromium made changes with v45 that broke all uses of the HTML5 History API in files when opened via the file://.

Try to run your app in a webserver.

Upvotes: 1

Related Questions