Transparent
4.6.1
Not planned
Beginning in the .NET Framework 4.6.1, WCF binding that uses the TransportWithMessageCredential security mode can be set up to receive messages with unsigned "to" headers for asymmetric security keys.
By default, unsigned "to" headers will continue to be rejected in .NET Framework 4.6.1. They will only be accepted if an application opts into this new mode of operation using the Switch.System.ServiceModel.AllowUnsignedToHeader configuration switch.
- Quirked
- Build-time break
Because this is an opt-in feature, it should not affect the behavior of existing apps.
To control whether the new behavior is used or not, use the following configuration setting:
<runtime>
<AppContextSwitchOverrides value="Switch.System.ServiceModel.AllowUnsignedToHeader=true" />
</runtime>
F:System.ServiceModel.BasicHttpSecurityMode.TransportWithMessageCredential
F:System.ServiceModel.BasicHttpsSecurityMode.TransportWithMessageCredential
F:System.ServiceModel.SecurityMode.TransportWithMessageCredential
F:System.ServiceModel.WSFederationHttpSecurityMode.TransportWithMessageCredential
Windows Communication Foundation (WCF)