Skip to content

Commit

Permalink
CefExample - Register https://cefsharp.example scheme handler factory…
Browse files Browse the repository at this point in the history
… for testing
  • Loading branch information
amaitland committed Jun 13, 2019
1 parent df617c1 commit 6dde636
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CefSharp.Example/CefExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -155,8 +155,14 @@ public static void Init(AbstractCefSettings settings, IBrowserProcessHandler bro
{
SchemeName = CefSharpSchemeHandlerFactory.SchemeName,
SchemeHandlerFactory = new CefSharpSchemeHandlerFactory(),
IsSecure = true //treated with the same security rules as those applied to "https" URLs
//SchemeHandlerFactory = new InMemorySchemeAndResourceHandlerFactory()
IsSecure = true, //treated with the same security rules as those applied to "https" URLs
});

settings.RegisterScheme(new CefCustomScheme
{
SchemeName = "https",
SchemeHandlerFactory = new CefSharpSchemeHandlerFactory(),
DomainName = "cefsharp.example"
});

settings.RegisterScheme(new CefCustomScheme
Expand Down

0 comments on commit 6dde636

Please sign in to comment.