defaultResponseHeaders property

HttpHeaders defaultResponseHeaders

Default set of headers added to all response objects.

By default the following headers are in this set:

Content-Type: text/plain; charset=utf-8
X-Frame-Options: SAMEORIGIN
X-Content-Type-Options: nosniff
X-XSS-Protection: 1; mode=block

If the Server header is added here and the serverHeader is set as well then the value of serverHeader takes precedence.

Source

HttpHeaders get defaultResponseHeaders;

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-io/HttpServer/defaultResponseHeaders.html