@@ -155,6 +155,7 @@ export default class RecruitCRMService {
155
155
'Content-Type' : req . headers [ 'content-type' ] ,
156
156
Authorization : this . private . authorization ,
157
157
} ,
158
+ credentials : 'omit' ,
158
159
} ) ;
159
160
if ( response . status === 429 ) {
160
161
await new Promise ( resolve => setTimeout ( resolve , 30000 ) ) ; // wait 30sec
@@ -198,6 +199,7 @@ export default class RecruitCRMService {
198
199
'Content-Type' : req . headers [ 'content-type' ] ,
199
200
Authorization : this . private . authorization ,
200
201
} ,
202
+ credentials : 'omit' ,
201
203
} ) ;
202
204
if ( response . status === 429 ) {
203
205
await new Promise ( resolve => setTimeout ( resolve , 30000 ) ) ; // wait 30sec
@@ -243,6 +245,7 @@ export default class RecruitCRMService {
243
245
'Content-Type' : 'application/json' ,
244
246
Authorization : this . private . authorization ,
245
247
} ,
248
+ credentials : 'omit' ,
246
249
} ) ;
247
250
if ( response . status === 429 ) {
248
251
await new Promise ( resolve => setTimeout ( resolve , 30000 ) ) ; // wait 30sec
@@ -267,6 +270,7 @@ export default class RecruitCRMService {
267
270
'Content-Type' : 'application/json' ,
268
271
Authorization : this . private . authorization ,
269
272
} ,
273
+ credentials : 'omit' ,
270
274
} ) ) ,
271
275
)
272
276
. then ( async ( allPages ) => {
@@ -311,6 +315,7 @@ export default class RecruitCRMService {
311
315
'Content-Type' : req . headers [ 'content-type' ] ,
312
316
Authorization : this . private . authorization ,
313
317
} ,
318
+ credentials : 'omit' ,
314
319
} ) ;
315
320
if ( response . status === 429 ) {
316
321
await new Promise ( resolve => setTimeout ( resolve , 30000 ) ) ; // wait 30sec
@@ -336,6 +341,7 @@ export default class RecruitCRMService {
336
341
'Content-Type' : req . headers [ 'content-type' ] ,
337
342
Authorization : this . private . authorization ,
338
343
} ,
344
+ credentials : 'omit' ,
339
345
} ) ) ,
340
346
)
341
347
. then ( async ( allPages ) => {
@@ -382,6 +388,7 @@ export default class RecruitCRMService {
382
388
'Content-Type' : req . headers [ 'content-type' ] ,
383
389
Authorization : this . private . authorization ,
384
390
} ,
391
+ credentials : 'omit' ,
385
392
} ) ;
386
393
if ( response . status === 429 ) {
387
394
await new Promise ( resolve => setTimeout ( resolve , 30000 ) ) ; // wait 30sec
@@ -430,6 +437,7 @@ export default class RecruitCRMService {
430
437
'Content-Type' : req . headers [ 'content-type' ] ,
431
438
Authorization : this . private . authorization ,
432
439
} ,
440
+ credentials : 'omit' ,
433
441
} ) ;
434
442
if ( candidateResponse . status >= 300 ) {
435
443
const error = {
@@ -480,6 +488,7 @@ export default class RecruitCRMService {
480
488
'Content-Type' : 'application/json' ,
481
489
Authorization : this . private . authorization ,
482
490
} ,
491
+ credentials : 'omit' ,
483
492
body : JSON . stringify ( form ) ,
484
493
} ) ;
485
494
if ( workCandidateResponse . status >= 300 ) {
@@ -503,6 +512,7 @@ export default class RecruitCRMService {
503
512
Authorization : this . private . authorization ,
504
513
...formHeaders ,
505
514
} ,
515
+ credentials : 'omit' ,
506
516
body : fileData ,
507
517
} ) ;
508
518
if ( fileCandidateResponse . status >= 300 ) {
@@ -528,6 +538,7 @@ export default class RecruitCRMService {
528
538
'Content-Type' : req . headers [ 'content-type' ] ,
529
539
Authorization : this . private . authorization ,
530
540
} ,
541
+ credentials : 'omit' ,
531
542
} ) ;
532
543
if ( applyResponse . status >= 300 ) {
533
544
const errObj = await applyResponse . json ( ) ;
@@ -554,6 +565,7 @@ export default class RecruitCRMService {
554
565
'Content-Type' : 'application/json' ,
555
566
Authorization : this . private . authorization ,
556
567
} ,
568
+ credentials : 'omit' ,
557
569
body : JSON . stringify ( {
558
570
candidate_slug : candidateData . slug ,
559
571
job_slug : id ,
@@ -682,6 +694,7 @@ export default class RecruitCRMService {
682
694
'Content-Type' : 'application/json' ,
683
695
Authorization : this . private . authorization ,
684
696
} ,
697
+ credentials : 'omit' ,
685
698
body : JSON . stringify ( form ) ,
686
699
} ) ;
687
700
if ( response . status >= 300 ) {
@@ -704,6 +717,7 @@ export default class RecruitCRMService {
704
717
Authorization : this . private . authorization ,
705
718
...formHeaders ,
706
719
} ,
720
+ credentials : 'omit' ,
707
721
body : fileData ,
708
722
} ) ;
709
723
if ( fileResponse . status >= 300 ) {
@@ -740,6 +754,7 @@ export default class RecruitCRMService {
740
754
headers : {
741
755
Authorization : this . private . authorization ,
742
756
} ,
757
+ credentials : 'omit' ,
743
758
} ) ;
744
759
if ( response . status === 429 ) {
745
760
await new Promise ( resolve => setTimeout ( resolve , 30000 ) ) ; // wait 30sec
0 commit comments