File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
javascript/ql/lib/semmle/javascript/frameworks Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -19,8 +19,6 @@ module Cors {
19
19
predicate isDefault ( ) { this .getNumArgument ( ) = 0 }
20
20
21
21
/** Gets the value of origin */
22
- DataFlow:: Node getOrigin ( ) {
23
- result = this .getOptionArgument ( 0 , "origin" )
24
- }
22
+ DataFlow:: Node getOrigin ( ) { result = this .getOptionArgument ( 0 , "origin" ) }
25
23
}
26
24
}
Original file line number Diff line number Diff line change @@ -1079,6 +1079,7 @@ module Express {
1079
1079
class CorsConfiguration extends DataFlow:: MethodCallNode {
1080
1080
CorsConfiguration ( ) { exists ( Express:: RouteSetup setup | this = setup | setup .isUseCall ( ) ) }
1081
1081
1082
+ /** Gets the cors argument */
1082
1083
Cors:: Cors getArgument ( ) { result = this .getArgument ( 0 ) }
1083
1084
1084
1085
/** Gets the options used to configure `cors`. */
You can’t perform that action at this time.
0 commit comments