mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
Apply suggestions from code review
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* `new Response(x)` is not longer seen as a reflected XSS sink when no`content-type` header
|
||||
* `new Response(x)` is not longer seen as a reflected XSS sink when no `content-type` header
|
||||
is set, since the content type defaults to `text/plain`.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
const express = require('express');
|
||||
|
||||
// Note: We're using express for the taint source in order to to test 'Response'
|
||||
// Note: We're using express for the taint source in order to test 'Response'
|
||||
// in isolation from the more complicated http frameworks.
|
||||
|
||||
express().get('/foo', (req) => {
|
||||
|
||||
Reference in New Issue
Block a user