The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpBaseProtocolFilter.AllowAutoRedirect | allowAutoRedirect property

Get or set a value that indicates whether the HttpBaseProtocolFilter should follow redirection responses.


var allowAutoRedirect = httpBaseProtocolFilter.allowAutoRedirect;
httpBaseProtocolFilter.allowAutoRedirect = allowAutoRedirect;

Property value

Type: Boolean [JavaScript] | System.Boolean [.NET] | Platform::Boolean [C++]

A value that indicates whether the HttpBaseProtocolFilter should follow redirection responses.

This value is true if the if HttpBaseProtocolFilter should follow redirection responses; otherwise false. The default value is true.


Set AllowAutoRedirect to true if you want the HttpBaseProtocolFilter to automatically follow HTTP redirection headers to the new location of the resource. The maximum number of redirections to follow is set internally by the system.

If AllowAutoRedirect is set to false, all HTTP responses with an HTTP status code from 300 to 399 are returned to whatever called the HttpBaseProtocolFilter, which might another filter that might then return them to the app.

The Authorization header is cleared on auto-redirects and the HttpBaseProtocolFilter automatically tries to re-authenticate to the redirected location. In practice, this means that an app can't put custom authentication information into the Authorization header if it is possible to encounter redirection. Instead, the app must implement a custom authentication module using a filter.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0


Windows::Web::Http::Filters [C++]



Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8.1

Minimum supported server

Windows Server 2012 R2

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]


Windows::Web::Http::Filters [C++]



See also