0

I want to open a new window of MIGS (payment service of VISA and MasterCart) and access its URL, but I have an exception: "Blocked a frame with origin from accessing a cross frame".

my code:

var wind = window.open(myUrl);
setInterval(function(){
    var x = wind.location.href;
},6000)

How can I access any changes to the URL?

Arnav Borborah
  • 9,956
  • 4
  • 32
  • 69
mshouman
  • 364
  • 1
  • 11
  • Why would `myUrl` not contain what you require? – N. Wouda Jun 11 '17 at 14:18
  • because the url changes when the user enter his data and send to MIGS then MIGS send its response in URL which I need to read – mshouman Jun 11 '17 at 14:20
  • Possible duplicate of [SecurityError: Blocked a frame with origin from accessing a cross-origin frame](https://stackoverflow.com/questions/25098021/securityerror-blocked-a-frame-with-origin-from-accessing-a-cross-origin-frame) – Shadowfool Jun 11 '17 at 14:27
  • I try this before but it didn't work – mshouman Jun 11 '17 at 14:31

0 Answers0