You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The use of new Function is considered unsafe. I am not sure why this approach was taken, but my guess is there was a no-op function that was needed. I think the safer approach would be
the following lines will produce unsafe-eval when using content-security-policy
https://github.com/ytiurin/downscale/blob/master/src/downscale.js#L14
https://github.com/ytiurin/downscale/blob/master/src/downscale.js#L20
The use of
new Function
is considered unsafe. I am not sure why this approach was taken, but my guess is there was a no-op function that was needed. I think the safer approach would beThe text was updated successfully, but these errors were encountered: