Uploaded image for project: 'Nuxeo JS Client'
  1. Nuxeo JS Client
  2. NXJS-197

Add credentials: 'include' to batch.js

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Node.js

      Description

      diff --git a/node_modules/nuxeo/lib/upload/batch.js b/node_modules/nuxeo/lib/upload/batch.js
      index 09972c7..d3c110c 100644
      --- a/node_modules/nuxeo/lib/upload/batch.js
      +++ b/node_modules/nuxeo/lib/upload/batch.js
      @@ -116,6 +116,7 @@ class BatchUpload extends Base {
                 'X-File-Type': blob.mimeType,
                 'Content-Length': blob.size,
               },
      +        credentials: 'include',
             };
             const options = this._computeOptions(opts);
             return this._nuxeo.http(options);
      @@ -133,6 +134,7 @@ class BatchUpload extends Base {
           const opts = {
             method: 'POST',
             url: this._url,
      +      credentials: 'include',
           };
           const { Promise } = this._nuxeo;
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: