Anupam Mishra
Anupam Mishra

Reputation: 3588

SecurityError (DOM Exception 18): The operation is insecure WKWebkit iOS 10

but failed to load complete web page.
When i am debugging the WKWebView in WebKit Nightly,It gives me error in console like SecurityError (DOM Exception 18): The operation is insecure.

Update 1 Error screenshot -enter image description here

Upvotes: 0

Views: 3876

Answers (1)

Patrik Nyblad
Patrik Nyblad

Reputation: 126

Calling window.history.pushState() with invalid or insecure parameters will trigger the exception: SecurityError (DOM Exception 18): The operation is insecure.

A script in the page you loaded is most likely trying to push some history that uses a hardcoded domain or scheme (ex. http://example.com) which does not match with your current domain http://192.168.1.157.

An uncaught exception will prevent the rest of the script to evaluate. Thats why it does not load/render fully.

To debug this issue, add exception breakpoints in the web inspector and refresh the page by pressing cmd + r with the web debugger as the selected window.

Upvotes: 1

Related Questions