Found the answer on the same page:
- Let mimeType be the result of extracting a MIME type from response’s
header list.
- Let destination be request’s destination.
- If destination is script-like and mimeType (ignoring parameters) is not
a JavaScript MIME type, then return blocked.
- If destination is "style" and mimeType (ignoring parameters) is not
text/css
, then return blocked.
- Return allowed.
I assume, since there is no MIME type declared, step 3 never returns blocked. In my case, there is no destination either, so we finish in step 5 -> allowed.
Edit: In step 3 and 4 an empty mime-type will not be a javascript mime type or a text/css mime-type. Therefor the request will be blocked if the destination matches.
nosniff only applies to "script" and "style" types
therefore it shouldn't have any effect when no content type is specified - the browser can still sniff. Internet Explorer/Edge seems most vulnerable to script tags being embedded in responses without a content types se.nosniff
only affects script and style content types. In the case of no content type then Internet Explorer will sniff and read script tags and execute them.