这是
实验性技术
检查
浏览器兼容性表格
要小心谨慎在生产中使用这之前。
preventSilentAccess()
方法在
CredentialsContainer
interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns an empty
Promise
.
For example, you might call this, after a user signs out of a website to ensure that he/she isn't automatically signed in on the next site visit. Mediation varies by origin, and is an added check point of browser stored credentials, informing a user of an account login status. This method is typically called after a user signs out of a website, ensuring this user's login information is not automatically passed on the next site visit.
Earlier versions of the spec called this method
requireUserMediation()
。见
浏览器兼容性
for support details.
var Promise = CredentialsContainer.preventSilentAccess()
None.
返回
空
Promise
.
| 规范 | 状态 | 注释 |
|---|---|---|
|
Credential Management Level 1
The definition of 'preventSilentAccess()' in that specification. |
工作草案 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
preventSilentAccess
|
Chrome
60
|
Edge ≤79 | Firefox Yes | IE ? | Opera 不支持 No | Safari ? |
WebView Android
60
|
Chrome Android
60
|
Firefox Android Yes | Opera Android 不支持 No | Safari iOS ? |
Samsung Internet Android
8.0
|
完整支持
不支持
兼容性未知
实验。期望将来行为有所改变。
使用非标名称。