0

I'm integrating a website into an existing Java application, which is using JavaFX WebView. Unfortunately login with LinkedIn in the website is broken.

I'm using Torii to handle the login, which opens a popup window, where the user logs in to LinkedIn. It works for normal browsers but in the JavaFX WebView it fails - after the login I end up in an error page by LinkedIn that says

Request Error, We’re sorry, there was a problem with your request. Please make sure you have cookies enabled and try again.

The Webview does support cookies, so that is not the issue. I suspect the issue is the popup attempts to communicate to the window opener, and fails under Java.

Do you have any idea how to make it work?

4

1 回答 1

0

看你的电话。某些网站不允许在其他网站中构图(显示)网站。您已按照linkedin 的要求发送帧选项。

例如只是一个 iframe;

<iframe src="https://www.linkedin.com/"></iframe>

当我们运行 index.html 时,console.log 会显示该错误;

拒绝在框架中显示“ https://www.linkedin.com/ ”,因为它将“X-Frame-Options”设置为“sameorigin”。

我不知道 webView setMultipleDisplay() 或 setFrameOption 等是否有任何选项。;。你必须找到那个功能。

于 2015-09-10T08:43:10.373 回答