This commit is contained in:
Maiky
2023-11-29 19:45:08 +02:00
parent 6a3cdc90e2
commit e6c7fc0ead
2 changed files with 2 additions and 3 deletions

View File

@@ -19,8 +19,6 @@ module Cors {
predicate isDefault() { this.getNumArgument() = 0 }
/** Gets the value of origin */
DataFlow::Node getOrigin() {
result = this.getOptionArgument(0, "origin")
}
DataFlow::Node getOrigin() { result = this.getOptionArgument(0, "origin") }
}
}

View File

@@ -1079,6 +1079,7 @@ module Express {
class CorsConfiguration extends DataFlow::MethodCallNode {
CorsConfiguration() { exists(Express::RouteSetup setup | this = setup | setup.isUseCall()) }
/** Gets the cors argument */
Cors::Cors getArgument() { result = this.getArgument(0) }
/** Gets the options used to configure `cors`. */