We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Express::RouteSetup
1 parent f623db4 commit 3bcb411Copy full SHA for 3bcb411
javascript/ql/lib/semmle/javascript/frameworks/Express.qll
@@ -1077,9 +1077,7 @@ module Express {
1077
* An express route setup configured with the `cors` package.
1078
*/
1079
class CorsConfiguration extends DataFlow::MethodCallNode {
1080
- CorsConfiguration() {
1081
- this = appCreation().getAMethodCall("use") and this.getArgument(0) instanceof Cors::Cors
1082
- }
+ CorsConfiguration() { exists(Express::RouteSetup setup | this = setup | setup.isUseCall()) }
1083
1084
Cors::Cors getArgument() { result = this.getArgument(0) }
1085
0 commit comments