javascript - How to load foreign image via POST request in browser? -
my web application (html5 + javascript) needs display png images generated foreign web service.
however, web service supports post requests only. (more exactly, provide requests, have transmit large arguments, due url becomes long.)
also, web service has different domain web application, , doesn't supply proper cors headers, ajax (xmlhttprequest) doesn't work.
is still possible web application load , display foreign image via post request?
i'm asking solution is different following nasty workarounds, well-known me:
- without setting local proxy translates request (and circumvents same-origin policy)
- without using remote proxy of stranger
- without using flash
- without using java applets
- without using os specific functionality such activex controls
however, solution fails work internet explorer acceptible. firefox or chrome specific solution appreciated.
horrible hack:
submit form iframe , have image displayed in iframe.
(but don't this, sounds web server designed avoid having images being embedded directly in other sites.)
Comments
Post a Comment