亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

annuaire recherche
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
personnages

在HTML5中,一些 HTML 元素提供了對 CORS 的支持, 例如<img>和 <video>均有一個跨域屬性 (crossOriginproperty),它允許你配置元素獲取數據的 CORS 請求。 這些屬性是枚舉的,并具有以下可能的值:

關鍵詞

描述

匿名

此元素的CORS請求將不會設置憑證標志。

使用的憑據

此元素的CORS請求將設置憑證標志; 這意味著請求將提供憑據。

默認情況下 (即未指定crossOrigin屬性時), CORS 根本不會使用。如Terminology section of the CORS specification 中的描述, “anonymous" 關鍵字說明不會通過 cookies,客戶端 SSL 證書或 HTTP 認證交換用戶憑據。

即使是無效的關鍵字和空字符串也會被當作 anonymous關鍵字使用。

示例: 使用 crossorigin 的 script 元素

你可以使用下面的<script>元素告訴一個瀏覽器執(zhí)行來自 https://example.com/example-framework.js 的腳本而不發(fā)送用戶憑據。

<script src="https://example.com/example-framework.js"
        crossorigin="anonymous"></script>

規(guī)范

規(guī)范

狀態(tài)

評論

HTML Living Standard該規(guī)范中'CORS設置屬性'的定義。

生活水平


HTML生活標準該規(guī)范中'跨部門'的定義。

生活水平


瀏覽器兼容性

Feature

Chrome

Firefox (Gecko)

Internet Explorer

Opera

Safari (WebKit)

Basic support

13

8.0 (8.0)

11

No support

(Yes)

<video>

?

12.0 (12.0)

?

?

?

Feature

Android

Firefox Mobile (Gecko)

IE Mobile

Opera Mobile

Safari Mobile

Basic support

?

8.0 (8.0)

?

?

(Yes)

<video>

?

12.0 (12.0)

?

?

?

Article précédent: Article suivant: