Skip to content

Commit 362ba36

Browse files
committed
Transient activation only required for create() cross-platform calls
1 parent 7ce2dee commit 362ba36

File tree

1 file changed

+14
-14
lines changed
  • files/en-us/web/api/web_authentication_api

1 file changed

+14
-14
lines changed

files/en-us/web/api/web_authentication_api/index.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -143,25 +143,25 @@ If you wish to authenticate with `get()` or `create()` in an `<iframe>`, there a
143143

144144
1. The site embedding the relying party site must provide permission via an `allow` attribute:
145145

146-
If using `get()`:
146+
- If using `get()`:
147147

148-
```html
149-
<iframe src="https://auth.provider.com" allow="publickey-credentials-get *">
150-
</iframe>
151-
```
148+
```html
149+
<iframe src="https://auth.provider.com" allow="publickey-credentials-get *">
150+
</iframe>
151+
```
152152

153-
If using `create()`:
153+
- If using `create()`:
154154

155-
```html
156-
<iframe
157-
src="https://auth.provider.com"
158-
allow="publickey-credentials-create 'self' https://a.auth.provider.com https://b.auth.provider.com">
159-
</iframe>
160-
```
155+
```html
156+
<iframe
157+
src="https://auth.provider.com"
158+
allow="publickey-credentials-create 'self' https://a.auth.provider.com https://b.auth.provider.com">
159+
</iframe>
160+
```
161161

162-
2. The `<iframe>` must also have {{glossary("Transient activation")}} when the methods are called.
162+
The `<iframe>` must also have {{glossary("Transient activation")}} if `create()` is called cross-origin.
163163

164-
3. The relying party site must provide permission for the above access via a `Permissions-Policy` header:
164+
2. The relying party site must provide permission for the above access via a `Permissions-Policy` header:
165165

166166
```http
167167
Permissions-Policy: publickey-credentials-get=*

0 commit comments

Comments
 (0)