ASP-WAF Web application firewall for .Net 5, .Net Standard 2.1 and .Net Core 3.x

PrivacyPreferencesFilter Class

This filter will inject the P3P header in your browser

Namespace:  Walter.Web.FireWall.Filters
Assembly:  Walter.Web.FireWall (in Walter.Web.FireWall.dll)

Syntax


[CLSCompliantAttribute]
public class PrivacyPreferencesFilter

Remarks


P3P header in your browser indicating that your cookies and browser state are following GDPR compliance and inform the user of the data it contains

You can enable the feature by injecting the filter in your MVC application

Examples


The bellow sample will inject privacy headers in each request
C#
services.AddMvc(options =>
       options.Filters.Add<Walter.Web.FireWall.Filters.PrivacyPreferencesFilter>()
   );

Inheritance Hierarchy


Object
  Walter.Web.FireWall.Filters..::..PrivacyPreferencesFilter

See Also


[AllMembers.T:Walter.Web.FireWall.Filters.PrivacyPreferencesFilter] Members