1

I host angular component what works as a map. There is a search feature that is a text box that returns the list of strings:

enter image description here

It works fine when it runs on browser, but it doesn't when I run it in cef browser component.

There are request-response sequence from browser application that works fine: enter image description here There are request-response sequence from WPF Cef applications: enter image description here

I believe that some configuration is missing for Cefsharp implementation. I tried all of things like "disable cache" etc., but it was all to no avail.

Additionally, for browser application that works, Security section shows "This page is not secure.": enter image description here

Whereas for Cef application it is 'The security of this page is unknown.":

enter image description here

My react application runs from localhost, whereas application in cefsharp runs from embedded resource:

http://app//resource/BrowserEx.ViewModels/web-gis-app/build/common-components/cc-gis-viewer/index.html?

enter image description here When I run the html file directly on browser on double click it throws exception: enter image description here

I will appreciate any advice, suggestion or even hint.

Mr.B
  • 3,484
  • 2
  • 26
  • 40
  • Is that application available online or you run it from local html file? – Evk Nov 27 '17 at 17:13
  • In my cefsharp application it runs from embedded resource html file. Sorry, I forgot to mention this important information. – Mr.B Nov 28 '17 at 07:40
  • If from localhost you mean you run it from local IIS - what happens if you just open html file in browser (by just clicking on it, so running from local folder)? – Evk Nov 28 '17 at 08:29
  • No, I run it locally by node.js. But yes, once I run it through my Chrome browser - it is OK, but when I run by Cefsharp app - it cannot receive data. When I run this html file directly on browser on double click it throws exception. I'm updating the question. – Mr.B Nov 28 '17 at 09:00
  • Well there is some cross-origin issue, but it's hard to debug it like that with screenshots, without actual source – Evk Nov 28 '17 at 09:29
  • Uploading to whole code is too much, but I can definitely can publish code segments that you think are important. – Mr.B Nov 28 '17 at 11:02
  • Well only minimal reproducable example is needed (so minimal code which reproduces your problem exactly). – Evk Nov 28 '17 at 11:03
  • I found the reason. Thank you anyway. – Mr.B Nov 28 '17 at 12:33

1 Answers1

1

I finally found the reason by analyzing of my request-response URLs by Fiddler. My URL in Cefsharp was incorrect. Once I held my URLs in App.config file and config file doesn't like "&": enter image description here

Here I found the solution for the issue.

The solution was just to remove all amp; characters: enter image description here Hence, conclusion of all this mishmash: don't use & while building your URL, - use & instead!

Mr.B
  • 3,484
  • 2
  • 26
  • 40