使用refer 的token验证方式失败

使用generate token生成的referer形式的token,在Silverlight的应用程序中没有header中没有办法获取到。
已邀请:

江民彬

赞同来自:

【解决办法】:
关于该问题,官方文档中有详细的说明。使用referer的形式生成的token是不支持的。

官方中有如下说明,

An Identifier to define a distinct ID for the web application that will use the token. You have two options: Web application URL/HTTP Referer or IP address. At the moment, the Referer header cannot be set by a Silverlightapplication. If you need to create a long term token, use the IP option with a proxy page. 

也就是说,当前在web应用程序中,token只支持http referer和ip的形式,request ip的形式是不支持的。但是在Silverlight api中只支持ip的形式。

完整连接如下: 

https://developers.arcgis.com/ ... s.htm

要回复问题请先登录注册