"Verify the message's origin in this cross-origin communication"
Am getting above vulnerability issue in window.AddEventListener() function.
I have fixed for window.addEventListener('message', function (e) {}) like below
window.addEventListener('message', function (e) {
if (e.origin !== undefined && !objCommon.Origin.includes(e.origin))
return;
})
but for window.addEventListener('load', function (eve) {}) and window.addEventListener('unload', function (eve) {}) am not getting origin value from eve parameter.
So how to fix this issue for load and unload addeventlistner?
Thanks