diff --git a/fetch.bs b/fetch.bs index 8d19ae84d..ff7061f00 100755 --- a/fetch.bs +++ b/fetch.bs @@ -4202,6 +4202,23 @@ Content-Type:
X-Content-Type-Options` headerExample: Using the X-Content-Type-Options header to prevent MIME type sniffing.
HTTP/1.1 200 OK
+Content-Type: text/html; charset=utf-8
+X-Content-Type-Options: nosniff
+
+<!doctype html>
+<html>
+ <head><title>Secure Page</title></head>
+ <body>
+ <script src="data:text/plain,alert('This script will be blocked')"></script>
+ </body>
+</html>
+
+ This prevents browsers from interpreting resources as a different MIME type than declared, + helping to mitigate certain types of cross-site scripting attacks.
+The
`X-Content-Type-Options`