停用Chrome自动填充信用卡 [英] Disable Chrome Autofill creditcard

查看:108
本文介绍了停用Chrome自动填充信用卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在表单中有两个字段,Chrome将它们错误地标识为信用卡号(一个是电话号码,一个是传真号码). Chrome认为姓氏字段也有两个,Chrome认为这是信用卡名称的字段,并且要自动填充.我可以在这些元素上使用一些属性来告诉Chrome实际上它们与信用卡无关吗?

I have two fields in my form which Chrome falsely identified as credit card numbers (one is for a phone number and one is for a fax number). There are also two fields for firstnames which Chrome thinks are fields for credit card names and want to autofill. Is there some attribute I can use on these elements to tell Chrome that they are in fact not related to a credit card?

我尝试在输入上设置autocomplete ="false".这删除了地址/联系信息的自动填充选项,但是信用卡选项仍然存在.

I've tried setting autocomplete="false" on the inputs. This removed the autofill options for address/contact information, but the credit card option was still there.

推荐答案

我终于找到了解决方法!将自动完成属性设置为"cc-csc",该值是信用卡的CVC,并且不允许其存储! (目前...)

I finally found a workaround! set the autocomplete attribute as "cc-csc" that value is the CVC of a credit card and that they are no allowed to store it! (for now...)

autocomplete ="cc-csc"

autocomplete="cc-csc"

这篇关于停用Chrome自动填充信用卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆