Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
595 views
in Technique[技术] by (71.8m points)

javascript - 无法在'DOMWindow'上执行'postMessage':https://www.youtube.com!== http:// localhost:9000(Failed to execute 'postMessage' on 'DOMWindow': https://www.youtube.com !== http://localhost:9000)

This is the error message that I get:

(这是我得到的错误消息:)

Failed to execute 'postMessage' on 'DOMWindow': The target origin provided
('https://www.youtube.com') does not match the recipient window's origin 
('http://localhost:9000').

I've seen other similar problems where the target origin is http://www.youtube.com and the recipient origin is https://www.youtube.com , but none like mine where the target is https://www.youtube.com and the origin is http://localhost:9000 .

(我已经看到其他类似的问题,目标来源是http://www.youtube.com ,收件人来源是https://www.youtube.com ,但没有一个像我的目标是https://www.youtube.com和原点是http://localhost:9000 。)

  1. I don't get the problem.

    (我没有遇到问题。)

    What is the problem?

    (问题是什么?)

  2. How can I fix it?

    (我该如何解决?)

  ask by Adam Zerner translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

Please log in or register to answer this question.

Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...