문제

Chrome display this error in console "Unsafe JavaScript attempt to access frame with URL https://domain1/app1/ from frame with URL https://domain2/app1/. Domains, protocols and ports must match."

도움이 되었습니까?

해결책

A frame cannot acces the content of another frame if it is not of the same origin. If that is what you're trying to achieve, you cannot work around that issue.

다른 팁

The browser will not allow Javascript to access cross domain, as malicious websites would be able to interact with other sites which would be a huge security concern.

I found this on Google groups, might be worth looking at:

I believe that dev versions of Chrome currently have support for Cross-Origin Resource Sharing, which allows hosts that want to to opt-into cross-origin XHR access http://dev.w3.org/2006/waf/access-control. You could try that, but it's pretty bleeding edge, so I'd expect rough patches.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top