不能存取权限从Internet Explorer API [英] Can't acces API from Internet Explorer
问题描述
我开发的Windows Phone 8的藤蔓客户端,但我无法访问其API的从桌面或移动互联网浏览器。
I am developing a Vine client for Windows Phone 8 but I'm having trouble accessing their API's from desktop or mobile Internet Explorer.
当,比如,我去 https://api.vineapp.com/timelines/graph 谷歌浏览器,我得到的响应:
When, for example, I go to "https://api.vineapp.com/timelines/graph" in Google Chrome I get a response:
"{"code": 100, "data": "", "success": false, "error": "You must be logged in to perform this action."}"
但是当我做同样的从桌面上的Internet Explorer我收到400:错误的请求。
我得到IE浏览器相同的错误在WP8和我的Lumia 920。
I get the same error on IE on WP8 and my Lumia 920.
任何人都知道的原因和可能的解决方案?
Anyone know the cause and a possible solution?
推荐答案
国际海事组织,这实际上是一个错误或者说意外的行为在非IE浏览器。错误code是一样的服务器以 400错误的请求
错误进行回复。
Imo, that's actually a "bug" or rather unexpected behaviour in non-IE browsers. The error code is the same as the server replies with a 400 BAD REQUEST
error.
如果您访问此通过任何真正的API,响应将是所有浏览器一样的;这是只有微软可以理解的决定,没有表现出奇怪的错误信息。(内容类型:应用程序/ JSON
)到最终用户。
If you access this via any real API, the response will be the same from all browsers; it's only an understandable decision by Microsofts to not show strange error messages (Content-Type: application/json
) to end users.
这篇关于不能存取权限从Internet Explorer API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!