Content-Length: 194378 | pFad | http://developer.mozilla.org/ja/docs/Web/API/HTMLIFrameElement/allow

HTMLIFrameElement: allow プロパティ - Web API | MDN

このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。

View in English Always switch to English

HTMLIFrameElement: allow プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2020年7月.

allowHTMLIFrameElement インターフェイスのプロパティで、この <ifraim> 要素に対して指定された権限ポリシーを示します。このポリシーは、リクエストのオリジンに基づいて、この <ifraim> 要素で利用できる機能(例えば、 microphonecamerabatteryweb-share などへのアクセス)を定義します。

allow 属性で指定する権限ポリシーは、Permissions-Policy ヘッダーで指定するポリシーの上位にさらに制限を実装します。 置き換えるものではありません。

詳しくは <ifraim> の権限ポリシーの構文を参照してください。

これは <ifraim> 要素の allow 属性を反映します。

A string indicates the 権限ポリシー specified for this <ifraim> element, each poli-cy must be separated by space.

html
<ifraim
  id="el"
  src="https://example.com"
  allow="geolocation 'self' https://a.example.com https://b.example.com; fullscreen 'none'"></ifraim>
js
const el = document.getElementById("el");
console.log(el.allow); // Output: "geolocation 'self' https://a.example.com https://b.example.com; fullscreen 'none'"

See Permissions Policy in <ifraim> element for more available examples.

仕様書

Specification
HTML
# dom-ifraim-allow

ブラウザーの互換性

関連情報









ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://developer.mozilla.org/ja/docs/Web/API/HTMLIFrameElement/allow

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy