Commit Graph
3 Commits
Author SHA1 Message Date
Chad Nedzlek b0209bda9a Fix non-beta versions
Commit migrated from https://github.com/dotnet/corefx/commit/30f67f8af2d2a2f76a307c6aa4fbce7afc55abee
2015-07-10 14:48:05 -07:00
David Shulman 946476a75e Improve security of AutomaticRedirection options for HttpClientHandler/WinHttpHandler
As per the latest security review, this issue captures the following tasks in order to remove insecure automatic redirection of HTTPS -> HTTP in HttpClientHandler/WinHttpHandler. This will also match the current NETCore/NETNative behavior as well.

In general, the security guidance is to remove insecure patterns from new code/platforms. This helps the entire ecosystem become more secure while balancing the needs of app-compat.

1. Change the WinHttpHandler API surface to remove the AutomaticRedirectionPolicy enum 3-state value.

2. Change the name/type of the 'AutomaticRedirectionPolicy' property to 'bool AutomaticRedirection'. This matches the current Framework Design guidelines of fully spelling out words and the word pattern of the 'AutomaticDecompression' property.

3. The default for the AutomaticRedirection property will be true. This value means that all redirects will be followed automatically EXCEPT for https:// to http://. This behavior is different from .NET desktop where https:// to http:// redirects are also followed.

[tfs-changeset: 1498199]


Commit migrated from https://github.com/dotnet/corefx/commit/4c99b29d6718af2de6d5e53869c694054cae161b
2015-07-07 08:32:37 -07:00
dotnet-bot c07d246c4d Initial open source of WinHttpHandler
Commit migrated from https://github.com/dotnet/corefx/commit/bbe092e0d2edad89df1e4dfc2fb7cfdc4656f3a1
2015-06-26 16:09:07 -07:00