MamoruDS / obsidian-open-link-with

Open external link with specific brower in Obsidian
MIT License
32 stars 3 forks source link

こんにちは! プラグインをインストールした後に Web サイトを開くと、次のエラーが表示されます。 #25

Open zhouxinghong opened 1 year ago

zhouxinghong commented 1 year ago

こんにちは! プラグインをインストールした後に Web サイトを開くと、次のエラーが表示されます。 image こんにちは! プラグインをインストールした後に Web サイトを開くと、次のエラーが表示されます。 警告アイコン Cookie を有効にして、ページをリロードしてください。 image OS: Win10 OBS バージョン: 1.1.16 プラグイン: 0.1.10

zhouxinghong commented 1 year ago

検証を重ねた結果、年齢確認が必要なサイトは全てアクセスできないことが判明し、大変ご迷惑をおかけしております。 . . あなたがそれを修正できることを願っています、どうもありがとう! 😜👍

MamoruDS commented 1 year ago

Hi there, visiting websites from iframe (in-app-view) in Obsidian may have some limitations. I’m not very familiar with how iframe handles cookies, but the issue you encountered may be caused by both the site’s server side and the iframe. For verification, I tried logging in to github and everything seemed fine, even when I reopened a new in-app-view without losing my login status. This shows that cookies are enabled at least for how github handles them. But I also faced a problem when I wanted to logout from github. So I suggest not using in-app-view for complex purposes since its usability may vary and be unpredictable.

For your scenario, if you really don’t want to use an external browser, you may need some HTTP header rewrite tools and handle cookies manually for specific websites (requests).

zhouxinghong commented 1 year ago

Hello! This function has already been implemented by similar extensions, but their problem is that the parsing of server resources is incomplete. If you need to refer to how to implement it, I can send you the URL of the extension. . .

zhouxinghong commented 1 year ago

So it can be determined that it is not the reason for the restriction of iframe (in-app view) access to the website in Obsidian. It is precisely because Obsidian provides the mechanism and API premise of using iframe (in-app view) to access websites that Obsidian can directly access Internet information extremely convenient and efficient. I hope you can continue to research and improve this function. . . Thank you so much! 👍😜

MamoruDS commented 1 year ago

I found that surfing works better on this, and I will research more on that. However, this will take some time to do, if you only want to open your links in in-app-view, you can try their plugin until I manage to fix this problem.

zhouxinghong commented 1 year ago

I found that surfing works better on this, and I will research more on that. However, this will take some time to do, if you only want to open your links in in-app-view, you can try their plugin until I manage to fix this problem.

Hope you have success soon! 😜👍👍👍