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

328
Views
Uncaught DOMException: Blocked a frame with origin "http://subdomain.lvh.me:3000" from accessing a cross-origin frame (http://lvh.me:3000)

Well, I'm trying to run an iframe or window.open in my subdomain page to access the domain page for Google Login permission purposes. But i'm getting the cross origin error.

My principal page is: http://subdomain.lvh.me:3000

And when I click on the button, a new pages open or the iframe opens (does not make difference) with the URL: http://lvh.me:3000

But in this way I can't access iframe.contentWindow.document to get the iframe content value from the principal page. That is the situation: Image error

And, when I try to send by window.postMessage, this is the error: postMessage error

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided ('http://subdomin.lvh.me:3001') does not match the recipient window's origin ('http://lvh.me:3001').

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You need to set the targetOrigin field when using postMessage to another domain

postMessage(‘hello world’, ’http://lvh.me:3000/’)
about 4 years ago · Juan Pablo Isaza Report
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!