How to edit hidden field on iframe that has cross origin blocked



  • I am trying to submit a funcaptcha but I cannot edit the token inside the iframe because of cross origin reasons. What is the solution?
    This is my error in chrome "VM457:1 Uncaught DOMException: Blocked a frame with origin "https://signup.hlt.com" from accessing a cross-origin frame.
    at <anonymous>:1:58
    BAS does not give any error but i assume it fails for the same reason



  • Update:
    This works in my chrome browser but not in BAS: document.querySelector("#verification-token").value="blahblahblah"

    Any idea why?



  • It only works if i open chrome dev tools and manually click "Copy-> Copy JS path" first....
    It's like BAS webpage cache is wrong or something and doing this refreshes it.
    https://gyazo.com/03a374fdd2701731f6a6c872b59e9f88

    But even after doing this cache issue fix, i still cannot edit the value using this Query in BAS. If I use BAS Chrome Console i can do document.querySelector("#verification-token").value="blahblahblah" and it sets the value

    But I do it via "Javascript" node in BAS nothing happens



  • found a different way to do it but this still appears to be a bug anyway


Log in to reply
 

  • 4
  • 1
  • 4
  • 2
  • 1
  • 6
  • 4
  • 5