You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If response’s status is 206 and mimeType (ignoring parameters) is a CORB-protected MIME type, then return blocked.
Step 4 checks the mime type for 206 responses whether nosniff is set or not.
Let nosniff be the result of extracting header values from the first header whose name is a byte-case-insensitive match for X-Content-Type-Options in response’s header list.
If nosniff is not failure and mimeType (ignoring parameters) is a CORB-protected MIME type or text/plain, then return blocked.
Note: CORB only protects text/plain responses with a X-Content-Type-Options: nosniff header. Unfortunately, protecting such responses without that header when their status is 206 would break too many existing video responses that have a text/plain MIME type.
The note suggests that only text/plain responses require the nosniff header to allow CORB, but from step 6 it seems like all types require nosniff in order to be protected, unless the response is 206.
It seems weird that 206 responses don't require nosniff. A note explaining why would be useful.
Maybe I'm getting confused because step 5 isn't clear on what should happen if the response does not have a X-Content-Type-Options header.
The text was updated successfully, but these errors were encountered:
https://fetch.spec.whatwg.org/#corb-check.
Step 4 checks the mime type for 206 responses whether nosniff is set or not.
The note suggests that only
text/plain
responses require the nosniff header to allow CORB, but from step 6 it seems like all types require nosniff in order to be protected, unless the response is 206.It seems weird that 206 responses don't require nosniff. A note explaining why would be useful.
Maybe I'm getting confused because step 5 isn't clear on what should happen if the response does not have a
X-Content-Type-Options
header.The text was updated successfully, but these errors were encountered: