
[FIG[
[3] 
> With the "[CODE(HTML)@en[[[ms-https-connections-only]]]]" [CODE(HTMLe)@en[[[meta]]]] element value you can prevent your Windows Store app using JavaScript from using HTTP connections for navigation or other non-media web content retrievals. When you set this [CODE(HTMLe)@en[[[meta]]]] element's content attribute to "[CODE(HTML)@en[true]]", HTTP navigation and non-media web content retrievals will fail.
>This [CODE(HTMLe)@en[[[meta]]]] tag must exist in the head of the your app's home page and must exist at the time that the [CODE(DOMa)@en[[[document]]]] fires its [CODE(DOMe)@en[[[load]]]] event. This is the only time you can turn on this feature and after you set it, it remains in effect until the next time the app is started. This means that [CODE(HTMLe)@en[[[iframe]]]] elements in your start page that point to HTTP URIs may load if the [CODE(HTMLe)@en[[[iframe]]]] exists and begins to load before the [CODE(DOMa)@en[[[document]]]] finishes loading.

[SRC[>>1]]
]FIG]

* 歴史

[REFS[
- [1] [CITE@en-us[How to require an HTTPS connection (Windows Store apps using JavaScript and HTML) (Windows)]] ([TIME[2012-11-18 02:27:23 +09:00]] 版) <http://msdn.microsoft.com/en-us/library/windows/apps/hh452771.aspx>
- [4] [CITE@en-us[content attribute | content property (Internet Explorer)]] ([TIME[2012-11-18 02:31:02 +09:00]] 版) <http://msdn.microsoft.com/en-us/library/ms533689(VS.85).aspx>
]REFS]

* 例

[FIG[
[2] 
[PRE(HTML example code)[
<meta name="ms-https-connections-only" content="true"/>
]PRE]
]FIG]