Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Sending ajax request to cross domain (https) from page loaded over http

    Without withCredentials flag (an xhr setting), the browser does not submit cookies to the cross domain server therefor request fails because of invalid session. One can do this in jquery like below but I am not able to figure out how I can set this flag for ajax requests initiated by SmartClient data source.

    Code:
    $.ajax( {
         xhrFields: { withCredentials: true }
    });

    #2
    Have you looked at the attribute RPCRequest.withCredentials?

    Comment


      #3
      I am using v10 and I don't see this attribute for RPCRequest.

      Comment


        #4
        This was added about 3 years ago, in 2015. You will need at least 10.1, but it would be a very bad idea to do new development on anything other than the latest release version.

        Comment

        Working...
        X