Jquery iframe transport plugin works in IE10 cross domain

6

I need to post xml using Federal Justice webservices, but I can only do it using IE10 in compatibility mode. I received the information that the iframe plugin transport from jquery would overcome this difficulty. Is this real or should I make my website and court site compatible with CORS?

    
asked by anonymous 27.02.2014 / 23:46

2 answers

1

Load data via IFRAME to dribble CORS when there is no possibility of a JSONP, it is a light solution. In the specification browsers should block this type of feature by allowing only the site containing the JavaScript to send via postMessage and interpret messages sent to it separately.

If this is not the case, you are exploiting a security flaw that some browsers may have, so the tendency is for these faults to be suppressed and your system to stop working. Whether it's a browser update, security or anti-virus plug-ins integrated with the client browser.

A suitable solution to give information from another site that does not have this data directly from client to client, is to use a server to do a tunneling, how it works:

  • Your client makes a request to your server
  • Your server modifies the request by including data such as API_KEY, cookies, etc. needed to communicate with the target webservice
  • It sends and captures webservice response
  • Treat the response and send the data back to your client either raw or processed
  • The service can be expanded to a webservice without problem, as long as your server handles the data correctly to send to the site that holds the desired information.

        
    28.02.2014 / 15:40
    0

    This plugin has some compatibility issues ...

    link

    I suggest translating and reading to see where your problem possibly fits.

    In addition, check in your plugin if the ajax return is via callback .success or .complete, .done, because callback .sucess does not work in this case.

    link

        
    28.02.2014 / 15:29