javascript - How to access cross-domain iframe content? (Upload file cross-domain) -


With IRM headers, is it possible to create content of iframe accessible cross-domain?

I have tried that simple access-control-permission-origin: * header but this is not clearly enough. I can not control myself on submission of form, so maybe this is an issue (I can not set up any type of corrosion request).

Note that my goal is to upload cross-domain to a file that results from the iframe approach, a common file upload, so I am trying.

You can not get direct access to DOM

Need to listen for code> messages events and other needs.

  addEventListener ('message', received message, incorrect); Get the Message Message (evt) {var message = evt.data; If (message === "success") {warning ("yay!"); }}   

and

  top.postMessage ("success", "*");    

Comments

Popular posts from this blog

c - Mpirun hangs when mpi send and recieve is put in a loop -

python - Apply coupon to a customer's subscription based on non-stripe related actions on the site -

java - Unable to get JDBC connection in Spring application to MySQL -