SecurityHeaders constructor

const SecurityHeaders({
  1. String? contentTypeOptions = 'nosniff',
  2. String? frameOptions = 'DENY',
  3. String? referrerPolicy = 'strict-origin-when-cross-origin',
  4. String? contentSecurityPolicy,
  5. String? strictTransportSecurity,
})

Adds the usual set.

Implementation

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