Merge pull request #20918 from asgerf/js/response-default-content-type

JS: Handle default 'content-type' header in Response() objects
This commit is contained in:
Asger F
2026-01-13 10:34:40 +01:00
committed by GitHub
5 changed files with 25 additions and 27 deletions

View File

@@ -0,0 +1,5 @@
---
category: minorAnalysis
---
* `new Response(x)` is no longer seen as a reflected XSS sink when no `content-type` header
is set, since the content type defaults to `text/plain`.