By adding the queryparameter allowCookies=on or allowCookies=off cookies will be disabled or enabled.
(cookis are enabled by setting an allowCookies cookie with the value "on")
- On the server side a http-module attached to the ResponseEnd event will clear all cookies if they are not enabled
- The HttpModule can be configured to work on a limited number of hostnames, just add them as a comma separated list in the app-setting "CookieRestrictions.ValidHostnames"
Install-Package CookieRestrictions -Version 18.104.22.168
dotnet add package CookieRestrictions --version 22.214.171.124
<PackageReference Include="CookieRestrictions" Version="126.96.36.199" />
paket add CookieRestrictions --version 188.8.131.52
Version 184.108.40.206 - Silent Handling now based on error number instead of exception message
Version 220.127.116.11 - Silent Handling of not being able to change cookies in request due to Flushed request content
Version 18.104.22.168 - Fixed Cookies from httpOnly true to false, and a typo in js
Version 22.214.171.124 - Implementet so the configuration can be overwriten
Version 126.96.36.199 - Implemented surpress cookie warning.
Version 188.8.131.52 - Fixed allow cookie validation in util class.
Version 184.108.40.206 - Added a util class
This package has no dependencies.
This package is not used by any popular GitHub repositories.