mailto link is blocked as insecure content in Chrome Gmail

倖福魔咒の 提交于 2019-12-19 19:01:01

问题


I've got a link in an encrypted HTML email that goes to mailto:blahblah, but it's being blocked in Chrome Gmail. Anything I can do about this?

Example:

1) I open an encrypted HTML email message inside of my encrypted GMail web client (https://gmail.com - notice the s in https).

2) The email contains a link in the folloiwng format: <a href="mailto:user@example.com">Email the user.</a>

3) I click on the link, but it is blocked because GMail and/or Chrome is treating the mailto link as insecure content.

4) I add target="_blank" to the aforementioned link and the problem goes away.

The rest of the message displays and functions correctly because, again, both the message and my email client are using encryption. The only thing that does not work is the mailto link.

Bonus question: how are mailto links classified with regard to protocols such as HTTP and HTTPS? Links to a W3C document would be helpful.


回答1:


From here: mailto link not working within a frame chrome (over https)

The suggestion is to use target="_top" instead of target="_blank".




回答2:


Add target="_blank" to the mailto link.




回答3:


I found simple solution for it just add https:// before your form action like:

<a href="mailto:user@example.com">Email the user.</a>

Change it to :

<a href="https://mailto:user@example.com">Email the user.</a>

I solved my issue by doing this I hope this work for you. If you get the solution please mark as solution. Thank you.



来源:https://stackoverflow.com/questions/19534543/mailto-link-is-blocked-as-insecure-content-in-chrome-gmail

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!