Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /fetch/corb/img-png-mislabeled-as-html-nosniff.tentative.sub.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<!-- Test verifies that CORB blocks an image mislabeled as text/html if
sniffing is disabled via `X-Content-Type-Options: nosniff` response header.
This has an observable effect (the image stops rendering), compared to the
behavior with no CORB.
-->
<meta charset="utf-8">
<!-- Reference page uses same-origin resources, which are not CORB-eligible. -->
<link rel="match" href="img-png-mislabeled-as-html-nosniff.tentative.sub-ref.html">
<!-- www1 is cross-origin, so the HTTP response is CORB-eligible -->