Skip to content

Commit

Permalink
WebBrowserExtensions.LoadUrlWithPostData - Set UrlRequestFlags.AllowC…
Browse files Browse the repository at this point in the history
…achedCredentials

Possible workaround for sending cookies

Issue #2705
  • Loading branch information
amaitland committed Apr 10, 2019
1 parent 05b2db8 commit 525a4f1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CefSharp/WebBrowserExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,9 @@ public static void LoadUrlWithPostData(this IWebBrowser browser, string url, byt

request.Url = url;
request.Method = "POST";
//Add AllowCachedCredentials as per suggestion linked in
//https://github.com/cefsharp/CefSharp/issues/2705#issuecomment-476819788
request.Flags = UrlRequestFlags.AllowCachedCredentials;

request.PostData.AddData(postDataBytes);

Expand Down

0 comments on commit 525a4f1

Please sign in to comment.