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 {
1919 predicate isDefault ( ) { this .getNumArgument ( ) = 0 }
2020
2121 /** 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" ) }
2523 }
2624}
Original file line number Diff line number Diff line change @@ -1079,6 +1079,7 @@ module Express {
10791079 class CorsConfiguration extends DataFlow:: MethodCallNode {
10801080 CorsConfiguration ( ) { exists ( Express:: RouteSetup setup | this = setup | setup .isUseCall ( ) ) }
10811081
1082+ /** Gets the cors argument */
10821083 Cors:: Cors getArgument ( ) { result = this .getArgument ( 0 ) }
10831084
10841085 /** Gets the options used to configure `cors`. */
You can’t perform that action at this time.
0 commit comments