- From: Ashish-coder-gif <notifications@github.com>
- Date: Wed, 22 Oct 2025 04:30:43 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <whatwg/fetch/pull/1872@github.com>
This PR adds an example demonstrating the use of the `X-Content-Type-Options: nosniff` header.
It includes a simple HTML and response snippet to show how browsers handle MIME type mismatches.
<!--
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/1872.html" title="Last updated on Oct 22, 2025, 11:30 AM UTC (8bb912d)">Preview</a> | <a href="https://whatpr.org/fetch/1872/0e72db8...8bb912d.html" title="Last updated on Oct 22, 2025, 11:30 AM UTC (8bb912d)">Diff</a>
You can view, comment on, or merge this pull request online at:
https://github.com/whatwg/fetch/pull/1872
-- Commit Summary --
* docs: add example for X-Content-Type-Options header
-- File Changes --
M fetch.bs (17)
-- Patch Links --
https://github.com/whatwg/fetch/pull/1872.patch
https://github.com/whatwg/fetch/pull/1872.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/pull/1872
You are receiving this because you are subscribed to this thread.
Message ID: <whatwg/fetch/pull/1872@github.com>
Received on Wednesday, 22 October 2025 11:30:47 UTC