File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
javascript/ql/lib/semmle/javascript/frameworks Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -1081,13 +1081,15 @@ module Express {
1081
1081
this = appCreation ( ) .getAMethodCall ( "use" ) and this .getArgument ( 0 ) instanceof Cors:: Cors
1082
1082
}
1083
1083
1084
+ Cors:: Cors getArgument ( ) { result = this .getArgument ( 0 ) }
1085
+
1084
1086
/** Gets the options used to configure `cors`. */
1085
- DataFlow:: Node getCorsArgument ( ) { result = this .getArgument ( 0 ) . ( Cors :: Cors ) . getCorsArgument ( ) }
1087
+ DataFlow:: Node getCorsArgument ( ) { result = this .getArgument ( ) . getOptionsArgument ( ) }
1086
1088
1087
1089
/** Holds if cors is using its default configuration. */
1088
- predicate isDefault ( ) { this .getArgument ( 0 ) . ( Cors :: Cors ) .isDefault ( ) }
1090
+ predicate isDefault ( ) { this .getArgument ( ) .isDefault ( ) }
1089
1091
1090
1092
/** Gets the `origin` option that the call to `cors` is configured with. */
1091
- DataFlow:: Node getOrigin ( ) { result = this .getArgument ( 0 ) . ( Cors :: Cors ) .getOrigin ( ) }
1093
+ DataFlow:: Node getOrigin ( ) { result = this .getArgument ( ) .getOrigin ( ) }
1092
1094
}
1093
1095
}
You can’t perform that action at this time.
0 commit comments