Skip to content

Commit b1626c7

Browse files
author
Jihye Hong
authored
Update explainer.md
1 parent 7ac0343 commit b1626c7

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

explainer.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -363,19 +363,23 @@ But for the iframe with `spatialnavigation` value is given to `allow` attribute
363363

364364
In detail, the approach for the Feature policy would be like below:
365365

366-
Default policy: spatialnavigation 'self'
366+
* Default policy: spatialnavigation 'self'
367367

368-
A page can declare the spatial navigation feature in its HTTP headers as follows:
369-
```
370-
Feature policy: spatialnavigation 'self'
371-
```
372-
It means that only same-origin iframe elements are allowed for the spatial navigation.
373-
374-
Also, the feature can be specified for a single iframe element using `allow` attribute as below:
375-
```
376-
<iframe src="https://example.com..." allow="spatialnavigation 'none'"></iframe>
377-
```
378-
This will block the spatial navigation feature for the corresponding iframe element.
368+
* `Feature-Policy` HTTP header
369+
370+
A page can declare the spatial navigation feature in its HTTP headers as follows:
371+
```
372+
Feature policy: spatialnavigation 'self'
373+
```
374+
It means that only same-origin iframe elements are allowed for the spatial navigation.
375+
376+
* iframe `allow` attribute
377+
378+
The feature can be specified for a single iframe element using `allow` attribute as below:
379+
```
380+
<iframe src="https://example.com..." allow="spatialnavigation 'none'"></iframe>
381+
```
382+
This will block the spatial navigation feature for the corresponding iframe element.
379383

380384
For example, the spatial navigation feature is allowed when the feature policy is specified as below:
381385
![<img>featurepolicy-example](https://github.com/jihyerish/jihyerish.github.io/blob/master/img/featurepolicy.png)

0 commit comments

Comments
 (0)