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

178
Views
How to Provide An Origin's First-Party Cookies When Calling it as a Third-Party

Suppose I own a website at "cookiemaker.com". I want my client (website owners themselves) to send HTTP requests to my server that include cookies I generated. In other words:

  1. End-User "Bob" visits my site at cookiemaker.com
  2. I (cookiemaker.com) provides him with a cookie that his browser now stores
  3. Bob is now visiting another website ("cool-recipes.com")
  4. Bob clicks a button within cool-recipes.com, then his browser sends an HTTP request to cookiemaker.com.

Is there a way to include the cookie created at (2) in the request sent at (4)?

(Assuming full control of both websites)

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

0

HTTP cookies are always sent to the url requested, the origin requesting it (cool-recipes.com) should have a response with a header as the following:

Access-Control-Allow-Origin: <origin> //The website requester

If this header is not present, you will get an error like the following:

Access to fetch at '<requested site>' from origin '<your site>' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.

You have to add the origin (cool-recipes.com) to the site requested response headers (cookiemaker.com).

Access-Control-Allow-Origin: https://cool-recipes.com
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!