|
Rank: Advanced Member Groups: Member
Joined: 6/3/2016 Posts: 32
|
In App.xaml `Application_Startup` I have the following code:
EO.WebEngine.BrowserOptions options = new EO.WebEngine.BrowserOptions(); options.EnableWebSecurity = false; options.EnableXSSAuditor = false; options.AllowJavaScript = true; options.AllowJavaScriptAccessClipboard = false; options.AllowPlugins = true; options.AllowZooming = true; options.DefaultEncoding = Encoding.UTF8; options.LoadImages = false;
EO.WebBrowser.Runtime.SetDefaultBrowserOptions(options); EO.WebBrowser.Runtime.CachePath = someCachePath; EO.WebBrowser.Runtime.Proxy = new EO.Base.ProxyInfo(EO.Base.ProxyType.HTTP, host, port);
The first page I am opening it is ok: no image is loaded. However, if I open a new tab, images are back. It worked fine before. Do I need to set this option for each tab? Same question for the rest of the runtime calls ...
Thanks.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/3/2016 Posts: 32
|
The same thing with 'EnableWebSecurity' - I think. I am trying to make an XmlHttpRequest call to another website (REST) from my app, call which used to work before, now I am getting this: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/3/2016 Posts: 32
|
Another thing I have tried and it didn't worked:
private WebViewItem NewWebViewItem(EO.WebBrowser.WebView webView) { WebViewItem item = new WebViewItem(webView); item.Page.WebView.NewWindow += new NewWindowHandler(WebView_NewWindow); }
void WebView_NewWindow(object sender, NewWindowEventArgs e) { EO.WebEngine.BrowserOptions options = new EO.WebEngine.BrowserOptions(); options.EnableWebSecurity = false; options.EnableXSSAuditor = false; options.AllowJavaScript = true; options.AllowJavaScriptAccessClipboard = false; options.AllowPlugins = true; options.AllowZooming = true; options.DefaultEncoding = Encoding.UTF8; options.LoadImages = false;
e.WebView.SetOptions(options);
}
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This is just to let you know that we are still working on this issue. We are able to reproduce the issue here and we expect to post an update build with the fix soon. We will reply here again when the issue is fixed.
Thanks!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
Please download build 17.0.81.0 from our download page. This build fixed this issue.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 6/3/2016 Posts: 32
|
Got the fix. It works. Thank you.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Great. Thanks for confirming the fix!
|
|
Rank: Advanced Member Groups: Member
Joined: 12/10/2014 Posts: 137
|
Hello,
I'm facing the exact same issue (on .81) but with EnableWebSecurity option.
I need it for loading local files, but it only works on first webview.
Btw, I tested loadImage=false; it worked as expected on all webviews.
EDIT :
Found out its more complicated than I though. It seems that, I cannot load local files after detaching a webview from a Window / re-attaching it to a new one. Instead of opening my file it load "about:blank", but without the normal error message "cannot access local files"
Best regards
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Eurice wrote:Hello,
I'm facing the exact same issue (on .81) but with EnableWebSecurity option.
I need it for loading local files, but it only works on first webview.
Btw, I tested loadImage=false; it worked as expected on all webviews.
EDIT :
Found out its more complicated than I though. It seems that, I cannot load local files after detaching a webview from a Window / re-attaching it to a new one. Instead of opening my file it load "about:blank", but without the normal error message "cannot access local files"
Best regards
This is just to let you know that we have found the root cause of the problem. The issue will be fixed in our next build. Thanks!
|
|