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 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. and 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).
addEventListener ('message', received message, incorrect); Get the Message Message (evt) {var message = evt.data; If (message === "success") {warning ("yay!"); }}
top.postMessage ("success", "*");
Comments
Post a Comment