From 53b4183444d444fbfb2c4c71cc009af7170fef95 Mon Sep 17 00:00:00 2001 From: Bogdan Lotarev Date: Thu, 21 Oct 2021 14:13:43 +0300 Subject: [PATCH] Docs: add Nginx example to X-Content-Type-Options --- packages/hint-x-content-type-options/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/packages/hint-x-content-type-options/README.md b/packages/hint-x-content-type-options/README.md index 47d96203346..fd5c52ff748 100644 --- a/packages/hint-x-content-type-options/README.md +++ b/packages/hint-x-content-type-options/README.md @@ -139,6 +139,18 @@ see the [IIS server configuration related documentation][iis config]. +
+ +How to configure NGINX + +You can add this header unconditionally to all responses. + +```nginx +add_header X-Content-Type-Options nosniff always; +``` + +
+ ## How to use this hint? This package is installed automatically by webhint: