Twitch in-game login captcha


#1

Hello,

Some users are not able to login to twitch using our ingame widget.
The browser used is Chromium 59 via Chrome Embedded Framework (Unreal engine 4.21 provides CEF 3.3071) from around June 2017

image

Is there any workaround to that?


#2

CEF version was not updated on any UE4 branch.
For anyone interested, here is a q&d workaround to fake your User-Agent.
You mat add in UE4 CEFBrowserHandler

CefRequestHandler::ReturnValue MainHandler::OnBeforeResourceLoad(CefRefPtr<CefBrowser> browser, CefRefPtr<CefFrame> frame, CefRefPtr<CefRequest> request, CefRefPtr<CefRequestCallback> callback)

HeaderMap.erase("User-Agent");
std::string latestChrome = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36";
HeaderMap.insert(std::pair<CefString, CefString>(TCHAR_TO_WCHAR(TEXT("User-Agent")), latestChrome));