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 22.214.171.124
dotnet add package CookieRestrictions --version 126.96.36.199
<PackageReference Include="CookieRestrictions" Version="188.8.131.52" />
paket add CookieRestrictions --version 184.108.40.206
Version 220.127.116.11 - Silent Handling now based on error number instead of exception message
Version 18.104.22.168 - Silent Handling of not being able to change cookies in request due to Flushed request content
Version 22.214.171.124 - Fixed Cookies from httpOnly true to false, and a typo in js
Version 126.96.36.199 - Implementet so the configuration can be overwriten
Version 188.8.131.52 - Implemented surpress cookie warning.
Version 184.108.40.206 - Fixed allow cookie validation in util class.
Version 220.127.116.11 - Added a util class
This package has no dependencies.