const classafSleepSafe::ContentTypeGuard

sys::Obj
  afSleepSafe::ContentTypeGuard : afSleepSafe::Guard

Guards against dodgy Content-Type sniffing by setting a X-Content-Type-Options HTTP response header that tells browsers to trust the Content-Type header.

X-Content-Type-Options: nosniff

See X-Content-Type-Options on MDN for details.

IoC Configuration

To disable, remove this class from the SleepSafeMiddleware configuration:

@Contribute { serviceType=SleepSafeMiddleware# }
Void contributeSleepSafeMiddleware(Configuration config) {
    config.remove(ContentTypeGuard#)
}