File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -363,19 +363,23 @@ But for the iframe with `spatialnavigation` value is given to `allow` attribute
363363
364364In 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
380384For 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 )
You can’t perform that action at this time.
0 commit comments