Property DefaultReferer
DefaultReferer
Gets or sets the default referer used by default for all requests going through ArcGISHttpClientHandler.
Declaration
[Obsolete("Use Esri.ArcGISRuntime.Http.HttpConfigurationExtensions.UseDefaultReferer")]
public static Uri DefaultReferer { get; set; }
Property Value
Type | Description |
---|---|
System.Uri | The default referer. |
Remarks
A referer is text in the Http header that is passed between web requests of the client application and web server.
In many scenarios, the referer is used to provide the web server how the incoming web request was initiated. For example a user clicked a particular hyperlink on a web page and the referer gets populated with that hyperlink. The referer is often the URL of the previous web page from which a link was followed. Some companies use referer information to find out user internet browsing patterns for their internet site. Setting referer information in the Http header of a web request is many times required by secured web sites so they can ensure that only approved users are using their resources.
IMPORTANT
Setting a string value for the DefaultReferer Property to the correct
referer is necessary in order to gain access to ArcGIS Server web services that require long term
tokens for authentication. ArcGIS Online and ArcGIS Portal require long term token for web services that
are secured. Depending on the development platform, specifying the correct string for the
AuthenticationManager.TokenGeneration Property can be imperative to accessing secured services by the
AuthenticationManager.
See Also
Applies to
Platforms and versions
Target | Versions |
---|---|
.NET Standard 2.0 | 100.3 - 200.6 |
.NET | 100.13 - 200.6 |
.NET Windows | 100.13 - 200.6 |
.NET Android | 200.0 - 200.6 |
.NET iOS | 200.0 - 200.6 |
.NET Framework | 100.0 - 200.6 |
Xamarin.Android | 100.0 - 100.15 |
Xamarin.iOS | 100.0 - 100.15 |
UWP | 100.0 - 200.6 |