Replies: 1 comment 4 replies
-
The preferred approach is to bind an object in JavaScript. You can choose to only bind a object for a specific domain. https://github.com/cefsharp/CefSharp/wiki/General-Usage#binding-an-async-object-in-javascript To invoke binding an object from .Net you can use EvaluateScriptAsPromiseAsync or For reference |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'd like to check the web origin in the exported C# object so that methods only functions for certain origins. It is for security reasons that the object should only be involved with trusted origins.
On iOS, exported method handler receives a WKScriptMessage message, within which a secure origin of the message posting page can be found and used to guard the invocation.
There is not no such mechanism in cefsharp, is there a way to only bind a C# object to an origin up-front?
Beta Was this translation helpful? Give feedback.
All reactions