dvDefaultSecurityHeaders top-level constant

Map<String, String> const dvDefaultSecurityHeaders

The headers every response gets when it has not set the same name itself.

SAMEORIGIN rather than DENY, so an application can still frame its own pages (Studio's preview does); Studio's own pages send DENY.

Implementation

const Map<String, String> dvDefaultSecurityHeaders = <String, String>{
  'x-content-type-options': 'nosniff',
  'x-frame-options': 'SAMEORIGIN',
  'referrer-policy': 'strict-origin-when-cross-origin',
};