I am trying to load an extension to the edge and provide key, value as headers to that extension(modheader). I was successful in loading the extension to the browser but not able to pass the key, value to the extension.
On searching, I inclined to use localStorage to add key and value, some one please confirm. Also am not able to perform the task using localstorage. some please help me with the code. key : IsWebView2 value: true
I have tried with the below code, but no luck. Please verify and suggest.
executor.executeScript("localStorage.setItem[{'headers':[{'enabled':true,'name':'iswebview2','value':'true'}],'shortTitle':'1','title':'Profile 1','version':2}]");