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

89
Views
How to identify cross-site requests?

I am having issues in reading cookies sent/set by the server in the response headers (Set-Cookie)

I wanted to understand if the below 2 scenarios constitute a cross-site

  1. UI is running on http://localhost:3000 and server which sets the cookie is on say other local host http://172.10.25.63:8089

  2. UI is running on http://myui.app.dev.something.myhost.net and server which sets the cookie is on say other host http://myservice.app.dev.something.myhost.net

Do the below 2 scenarios have a cross-site request ?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

For the purposes of Ajax, those are all cross-origin requests (which needs the useCredentials flag on the client and permission from CORS including a preflight on the server).

For the purposes of Cookies being available on both URLs, for case (1) they are different and for case (2) since they share a common set of domains (app.dev.somethings.myhost.net) they can share cookies if the domain parameter is set correctly in the Set-Cookie response header.

about 4 years ago · Juan Pablo Isaza Report
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!