[whatwg/fetch] Add examples for X-Content-Type-Options header (PR #1844)

Add examples for X-Content-Type-Options header

Addresses issue #636 by adding comprehensive examples to clarify the behavior of the X-Content-Type-Options: nosniff directive.

This is an editorial change that adds examples without changing any normative requirements. The examples illustrate when responses are blocked vs allowed, helping web developers understand the algorithm's behavior.

Fixes #636


<!--
    This comment and the below content is programmatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/fetch/1844.html" title="Last updated on Jul 27, 2025, 10:10 AM UTC (007025f)">Preview</a> | <a href="https://whatpr.org/fetch/1844/0a041eb...007025f.html" title="Last updated on Jul 27, 2025, 10:10 AM UTC (007025f)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/fetch/pull/1844

-- Commit Summary --

  * Add examples for X-Content-Type-Options header

-- File Changes --

    M fetch.bs (47)

-- Patch Links --

https://github.com/whatwg/fetch/pull/1844.patch
https://github.com/whatwg/fetch/pull/1844.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1844
You are receiving this because you are subscribed to this thread.

Message ID: <whatwg/fetch/pull/1844@github.com>

Received on Sunday, 27 July 2025 10:11:11 UTC