mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
Use config.getCorsConfiguration().getOrigin())
Co-authored-by: Erik Krogh Kristensen <erik-krogh@github.com>
This commit is contained in:
@@ -68,6 +68,8 @@ module CorsPermissiveConfiguration {
|
||||
* The value of cors origin when initializing the application.
|
||||
*/
|
||||
class ExpressCors extends Sink, DataFlow::ValueNode {
|
||||
ExpressCors() { exists(Express::CorsConfiguration config | this = config.getOrigin()) }
|
||||
ExpressCors() {
|
||||
exists(Express::CorsConfiguration config | this = config.getCorsConfiguration().getOrigin())
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user