Receiving "SecurityError (DOM Exception 18): Operation unsafe" error while storing data in localStorage UIWebView
I am developing one Xamarin.Forms application , and in this application I am using WebView to integrate a tier payment gateway and also create a WebViewRenderer to store data in localStorage UIWebView. and I am getting a security error ( SecurityError (DOM Exception 18): Operation unsafe ). Tyro Payment Gateway URL: " https://iclient.test.tyro.com ".
Please see below my code and help me
string subkey = "window.localStorage.setItem('webTta.integrationKey','integrationKey')";
string key ="try { "+subkey +"; } catch (e) { alert(e); }";
IntegrationKey = _uiWebView.EvaluateJavascript(key);
+3
source to share