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

123
Views
Window.open can't be closed for some urls

In my react app, I am opening a popup window like this

this.popup = window.open('https://github.com', 'Popup', newOpts);

when I try to close this popup 5 seconds later by calling close() like below

this.popup.close()

it works fine when url is 'https://github.com' or 'https://google.com' but for some other urls like 'https://twitter.com' or 'https://facebook.com' it doesn't work. Can anyone try explain this behaviour to me?

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

0

It turned my issue is related to twitter v2 endpoint itself since it has COOP header set. See related discussion: https://twittercommunity.com/t/oauth2-authorization-via-window-open/167249

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!