Codacy secure error

237 views Asked by At

Codacy js test give me an secure errors:

Function Call Object Injection Sink (security/detect-object-injection)

For next code row:

let computedType = window.getComputedStyle(arr[i]).display.toString();

Why can't i use [i] for working with loop and why it is not secure?

0

There are 0 answers