使用 Struts 和 Java 的 Twitter 授权网站上的空白页面

发布于 2024-11-16 02:10:44 字数 324 浏览 2 评论 0原文

我正在使用 Java 和 Struts 构建 Twitter 客户端。我正在使用 Twitter4j!库来建立连接。

直到 1 个月前一切都工作正常。当用户需要授权 Twitter 应用程序并使用 sendRedirect 指令时,浏览器会显示空白页面。如果我将链接复制到单独的选项卡/窗口上,它会显示“正常”(https://api.twitter.com/oauth/authorize?oauth_token=XXX)

为什么会发生这种情况?

提前致谢。

I'm building a Twitter client on Java and Struts. I'm using the Twitter4j! library to make the connection.

Everything was working OK until 1 month ago. When the user needed to authorize the Twitter app and using the sendRedirect instruction, the browser shows a blank page. If I copy the link on a separate tab/window, it shows OK (https://api.twitter.com/oauth/authorize?oauth_token=XXX)

Why could this be happening?

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文