gpt4 book ai didi

html - Safari 邮寄地址 : "This website has been blocked from automatically composing an email."

转载 作者:太空狗 更新时间:2023-10-29 13:13:12 34 4
gpt4 key购买 nike

当使用 Safari (iOS 10.2) 并单击 mailto 链接时,将显示确认提示和以下消息:

"This website has been blocked from automatically composing an email." Ignore / Allow

我想在我自己的网站上摆脱它,但不知道该怎么做。它可以用 Safari 重现,例如在任何 BBC 文章上单击邮件图标。

Screenshot of dialogue on iPad

我的网络研究让我找到了这些链接:

https://discussions.apple.com/thread/7763735

WillieFromColo Jan 11, 2017 8:25 AM in response to Russ G

Issues with Safari and "This website has been blocked from automatically composing an email."

My research on Google suggests that this Error-type Message started happening in about November with an update to Safari, which likely occurred concurrently with Apple's update to iOS 10.2. As of today (1/11/17) that is the latest version of iOS for iPads and perhaps iPhones, too.

[...]

https://developer.apple.com/safari/technology-preview/release-notes/#r15

Release 15 URL Handling

Navigations to tel: and mailto: links now require a user gesture; navigations without a user gesture will show a confirmation prompt

所以它看起来像是 Safari 的“功能”。有谁知道如何防止这个提示?

最佳答案

各种第三方 JavaScript 库将拦截对 a 标签的点击,以防止在向服务器发送数据时短暂导航。通常,它们通过 window.location.replace 以编程方式触发导航。

当以这种方式触发 mailto/tel 链接时,Safari 中的更改会弹出警告。

一个交互,但通常被 preventDefault 停止,Safari 不关心。

如果您使用的库导致此问题,请联系创建者,看看他们是否可以更新它以跳过 mailto/tel 链接上的 preventDefault

关于html - Safari 邮寄地址 : "This website has been blocked from automatically composing an email.",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42085551/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com