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

directory search
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
characters

在HTML5中,一些 HTML 元素提供了對(duì) CORS 的支持, 例如<img>和 <video>均有一個(gè)跨域?qū)傩?nbsp;(crossOriginproperty),它允許你配置元素獲取數(shù)據(jù)的 CORS 請(qǐng)求。 這些屬性是枚舉的,并具有以下可能的值:

關(guān)鍵詞

描述

匿名

此元素的CORS請(qǐng)求將不會(huì)設(shè)置憑證標(biāo)志。

使用的憑據(jù)

此元素的CORS請(qǐng)求將設(shè)置憑證標(biāo)志; 這意味著請(qǐng)求將提供憑據(jù)。

默認(rèn)情況下 (即未指定crossOrigin屬性時(shí)), CORS 根本不會(huì)使用。如Terminology section of the CORS specification 中的描述, “anonymous" 關(guān)鍵字說(shuō)明不會(huì)通過(guò) cookies,客戶端 SSL 證書(shū)或 HTTP 認(rèn)證交換用戶憑據(jù)。

即使是無(wú)效的關(guān)鍵字和空字符串也會(huì)被當(dāng)作 anonymous關(guān)鍵字使用。

示例: 使用 crossorigin 的 script 元素

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

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

規(guī)范

規(guī)范

狀態(tài)

評(píng)論

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

生活水平


HTML生活標(biāo)準(zhǔn)該規(guī)范中'跨部門(mén)'的定義。

生活水平


瀏覽器兼容性

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)

?

?

?

Previous article: Next article: