SecurityHeaders constructor

SecurityHeaders({
  1. String? contentTypeOptions = 'nosniff',
  2. String? frameOptions = 'DENY',
  3. String? referrerPolicy = 'strict-origin-when-cross-origin',
  4. String? contentSecurityPolicy,
  5. String? permissionsPolicy,
  6. String? strictTransportSecurity,
  7. String? xssProtection,
  8. bool removeServerHeader = true,
})

Implementation

SecurityHeaders({
  this.contentTypeOptions = 'nosniff',
  this.frameOptions = 'DENY',
  this.referrerPolicy = 'strict-origin-when-cross-origin',
  this.contentSecurityPolicy,
  this.permissionsPolicy,
  this.strictTransportSecurity,
  this.xssProtection,
  this.removeServerHeader = true,
});