Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

199
Views
getting "Verify the message's origin in this cross-origin communication" vulnerability issue in window.addEventListener('load', function (eve) {}) JS

"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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!