【发布时间】:2010-11-27 17:40:48
【问题描述】:
我使用 JQuery 创建了一个 Windows 小工具来调用 Yammer 的 oAuth-Service:https://www.yammer.com/oauth/request_token(API Documentation)
$.ajax({
url: "https://www.yammer.com/oauth/request_token",
type: "GET",
beforeSend: function (xhr) {
xhr.setRequestHeader("Authorization", oAuthHeader)
},
success: function() { ... },
error: function() { ... }
});
sidebar.exe 进程显示安全警报,因为我调用的是 HTTPS 地址。 “此页面正在访问不受其控制的信息。这会带来安全风险。您要继续吗?”
此服务没有 HTTP 地址。有没有办法避免这个警告?
谢谢
2010 年 11 月 28 日更新:
这是我目前的配置。有什么特别的吗?
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1001"=dword:00000001
"1004"=dword:00000003
"1200"=dword:00000000
"1201"=dword:00000003
"1206"=dword:00000000
"1207"=dword:00000000
"1208"=dword:00000000
"1209"=dword:00000000
"120A"=dword:00000003
"120B"=dword:00000000
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000001
"1407"=dword:00000000
"1408"=dword:00000000
"1409"=dword:00000003
"1601"=dword:00000000
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"160A"=dword:00000000
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000000
"1805"=dword:00000000
"1806"=dword:00000000
"1807"=dword:00000000
"1808"=dword:00000000
"1809"=dword:00000003
"180A"=dword:00000000
"180C"=dword:00000000
"180D"=dword:00000000
"180E"=dword:00000000
"180F"=dword:00000000
"1A00"=dword:00000000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000000
"1A05"=dword:00000000
"1A06"=dword:00000000
"1A10"=dword:00000000
"1C00"=dword:00020000
"2000"=dword:00000000
"2005"=dword:00000000
"2100"=dword:00000000
"2101"=dword:00000003
"2102"=dword:00000000
"2103"=dword:00000000
"2104"=dword:00000000
"2105"=dword:00000000
"2106"=dword:00000000
"2200"=dword:00000000
"2201"=dword:00000000
"2300"=dword:00000001
"2301"=dword:00000003
"2400"=dword:00000000
"2401"=dword:00000000
"2402"=dword:00000000
"2500"=dword:00000003
"2600"=dword:00000000
"2700"=dword:00000003
"CurrentLevel"=dword:00000000
"Description"="Your computer"
"DisplayName"="Computer"
"Flags"=dword:00000021
"Icon"="shell32.dll#0016"
"LowIcon"="inetcpl.cpl#005422"
"PMDisplayName"="Computer [Protected Mode]"
"2004"=dword:00000003
"2007"=dword:00000003
"2001"=dword:00000003
[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Internet Settings\Zones\0]
"1001"=dword:00000000
"1004"=dword:00000000
"1200"=dword:00000000
"1201"=dword:00000001
"1206"=dword:00000000
"1207"=dword:00000000
"1208"=dword:00000000
"1209"=dword:00000000
"120A"=dword:00000000
"120B"=dword:00000000
"1400"=dword:00000000
"1402"=dword:00000000
"1405"=dword:00000000
"1406"=dword:00000000
"1407"=dword:00000000
"1408"=dword:00000000
"1409"=dword:00000003
"1601"=dword:00000000
"1604"=dword:00000000
"1605"=dword:00000000
"1606"=dword:00000000
"1607"=dword:00000000
"1608"=dword:00000000
"1609"=dword:00000001
"160A"=dword:00000000
"1802"=dword:00000000
"1803"=dword:00000000
"1804"=dword:00000000
"1805"=dword:00000000
"1806"=dword:00000000
"1807"=dword:00000000
"1808"=dword:00000000
"1809"=dword:00000003
"180A"=dword:00000000
"180C"=dword:00000000
"180D"=dword:00000000
"180E"=dword:00000000
"180F"=dword:00000000
"1A00"=dword:00000000
"1A02"=dword:00000000
"1A03"=dword:00000000
"1A04"=dword:00000000
"1A05"=dword:00000000
"1A06"=dword:00000000
"1A10"=dword:00000000
"1C00"=dword:00020000
"2000"=dword:00000000
"2005"=dword:00000000
"2100"=dword:00000000
"2101"=dword:00000003
"2102"=dword:00000000
"2103"=dword:00000000
"2104"=dword:00000000
"2105"=dword:00000000
"2106"=dword:00000000
"2200"=dword:00000000
"2201"=dword:00000000
"2300"=dword:00000001
"2301"=dword:00000003
"2400"=dword:00000000
"2401"=dword:00000000
"2402"=dword:00000000
"2500"=dword:00000003
"2600"=dword:00000000
"2700"=dword:00000003
"CurrentLevel"=dword:00000000
"Description"="Your computer"
"DisplayName"="Computer"
"Flags"=dword:00000021
"Icon"="shell32.dll#0016"
"LowIcon"="inetcpl.cpl#005422"
"PMDisplayName"="Computer [Protected Mode]"
"2007"=dword:00000003
"2004"=dword:00000003
"2001"=dword:00000003
【问题讨论】:
-
https 应该没什么区别,我已经从 Windows 桌面小工具中多次使用它。您是否检查过您的安全设置是否为默认设置?
-
嘿,安迪 E。我从来没有自己更改过安全标志。我在ie9中使用了“将所有区域重置为默认级别”。我的系统是64位的。感谢您的意见。
-
不确定可能是什么问题,我还在 Windows 7 x64 上运行 IE9 beta,区域默认设置。您可以尝试使用
new XMLHttpRequest()方法,而不是使用默认为非本地 XMLHttp 的$.ajax。
标签: jquery ajax security windows-desktop-gadgets