Microsoft.AspNetCore.CookiePolicy Extension methods to add cookie policy capabilities to an HTTP application pipeline. Adds the handler to the specified , which enables cookie policy capabilities. The to add the handler to. A reference to this instance after the operation has completed. Adds the handler to the specified , which enables cookie policy capabilities. The to add the handler to. A that specifies options for the handler. A reference to this instance after the operation has completed. Provides programmatic configuration for the . Affects the cookie's same site attribute. Affects whether cookies must be HttpOnly. Affects whether cookies must be Secure. Checks if consent policies should be evaluated on this request. The default is false. Called when a cookie is appended. Called when a cookie is deleted.