diff --git a/Awful.apk/src/main/java/com/ferg/awfulapp/webview/AwfulWebView.java b/Awful.apk/src/main/java/com/ferg/awfulapp/webview/AwfulWebView.java index eddc3b230..afdf8a79e 100644 --- a/Awful.apk/src/main/java/com/ferg/awfulapp/webview/AwfulWebView.java +++ b/Awful.apk/src/main/java/com/ferg/awfulapp/webview/AwfulWebView.java @@ -101,6 +101,12 @@ private void init() { webSettings.setAllowUniversalAccessFromFileURLs(true); webSettings.setAllowFileAccess(true); webSettings.setAllowContentAccess(true); + + // Issue #526: third-party embeds (Twitter, Facebook, Imgur, + // Instagram) load their iframe content from a different origin + // and need their session cookie to render. Without this the + // embed area shows a blank box or a "log in" stub. + CookieManager.getInstance().setAcceptThirdPartyCookies(this, true); }