File tree 1 file changed +14
-14
lines changed
files/en-us/web/api/web_authentication_api 1 file changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -143,25 +143,25 @@ If you wish to authenticate with `get()` or `create()` in an `<iframe>`, there a
143
143
144
144
1 . The site embedding the relying party site must provide permission via an ` allow ` attribute:
145
145
146
- If using ` get() ` :
146
+ - If using ` get() ` :
147
147
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
+ ```
152
152
153
- If using ` create() ` :
153
+ - If using `create()`:
154
154
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
+ ```
161
161
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 .
163
163
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:
165
165
166
166
```http
167
167
Permissions-Policy: publickey-credentials-get=*
You can’t perform that action at this time.
0 commit comments