Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

212
Views
How to change referer in Request header?

What i tried is

  1. Trigger Login API - Success
  2. Another post API to create customer - Failed due to cookie was not setting properly because i am trying it with localhost , so i tried to change the referer to the actual API host for example (https://www.somesite.com/someapi)

but i am unable to update the referer ,

**

 var headers = new Headers()
 headers.set('x-sk-session-id', sessionId)
 headers.set('sessionid', sessionId)
  
   fetch('some-url', {
    method:      'POST',
    credentials: 'include',
    // withCredentials: true,
    // mode:        'same-origin',
    origin: 'some-api.url.com',
    referer: 'some-api.url.com',
    headers: headers,
  }).then((res)=> res.json()).then((data)=> console.log(data)); 

**

But i am still getting Invalid Session id error from backend , due to cookie forwarding was failed

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!