Skip to content

Commit

Permalink
feat(credentials): withCredentials option
Browse files Browse the repository at this point in the history
  • Loading branch information
jkuri committed May 31, 2017
1 parent fb630ec commit d255ef1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ngx-uploader/classes/ngx-uploader.class.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export interface UploadInput {
data?: { [key: string]: string | Blob };
headers?: { [key: string]: string };
concurrency?: number;
withCredentials?: boolean;
}

export function humanizeBytes(bytes: number): string {
Expand Down Expand Up @@ -218,6 +219,7 @@ export class NgUploaderService {
};

xhr.open(method, url, true);
xhr.withCredentials = event.withCredentials ? true : false;

const form = new FormData();
try {
Expand Down

0 comments on commit d255ef1

Please sign in to comment.