onprogress callback using method request on ZAF Client ?

Answered

3 Comments

  • Bryan Flynn
    Comment actions Permalink

    Hi Maxime,

    There's no such callback/onprogress functionality. There was a new option added to the client.request method recently called 'httpCompleteResponse' -- basically you get the full HTTP response data when this flag is set to true. Maybe there's some response header information that may prove helpful??

    The way the ZAFClient request method works in apps (which are iframed) is through behind-the-scenes postMessage calls -- since there's this level of abstraction between the backend proxy and the iframed/sandboxed app, that kind of callback connection isn't available. Of course another alternative would be to get your remote server to allow CORS calls, but I'm guessing you already looked into that.

    Hope this helps in determining your options and next steps!

    0
  • Maxime Lambert
    Comment actions Permalink

    Hi Bryan,

    Thank you for your reply, you confirmed what I thought. I have already checked the httpCompleteResponse option, unfortunatly there's nothing helpful here for me.

    The remote server is one of our partner, so I cannot allow CORS calls. I think my best option is to call our own proxy server and allow CORS calls on it.

    Have a nice day,

    Maxime L

    0
  • Bryan Flynn
    Comment actions Permalink

    Thanks Maxime -- best of luck on your effort.

    0

Post is closed for comments.

Powered by Zendesk