Skip to content

Commit 191766a

Browse files
Use config.getCorsConfiguration().getOrigin())
Co-authored-by: Erik Krogh Kristensen <[email protected]>
1 parent 4f68f60 commit 191766a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

javascript/ql/src/experimental/Security/CWE-942/CorsPermissiveConfigurationCustomizations.qll

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ module CorsPermissiveConfiguration {
6868
* The value of cors origin when initializing the application.
6969
*/
7070
class ExpressCors extends Sink, DataFlow::ValueNode {
71-
ExpressCors() { exists(Express::CorsConfiguration config | this = config.getOrigin()) }
71+
ExpressCors() {
72+
exists(Express::CorsConfiguration config | this = config.getCorsConfiguration().getOrigin())
73+
}
7274
}
7375
}

0 commit comments

Comments
 (0)