Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9010661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:31:18+00:00 2026-06-16T02:31:18+00:00

Hopefully this is simple to answer. With a credentialed request in XHR2, which cookies

  • 0

Hopefully this is simple to answer.

With a credentialed request in XHR2, which cookies are sent?

I’ve been following the MDN article on credentialed requests, and it shows that the cookie pageAccess=2 is sent with the request. However it doesn’t explain where that cookie comes from, and why that cookie specifically is being sent. Is it simply that all cookies set by the page are sent in any credentialed request?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T02:31:20+00:00Added an answer on June 16, 2026 at 2:31 am

    From the HTML5 Rocks page on CORS:

    The .withCredentials property will include any cookies from the remote domain in the request, and it will also set any cookies from the remote domain.

    I assume “any cookies” means “all cookies” (probably subject to a HTTPS-only flag on the cookie), since there is no mechanism to specify cookies with XHR2.

    The cookies that get sent are the cookies that were set by the remote domain: if foo.com sends a request a credentialed request to bar.com, any cookies set by bar.com are sent. To put this in practical terms, suppose facebook.com has a CORS-aware API that requires you to be logged in to use. I’ve logged in to Facebook earlier in my browser session, but now I’m browsing foo.com, which is going to use Facebook’s API on my behalf. foo.com asks th ebrowser to send a cross-domain request to facebook.com along with all my facebook.com cookies so Facebook knows who I am and that I’ve already authenticated to Facebook.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hopefully this is a pretty simple question for someone to answer. I have a
Hopefully this is a simple question to answer - I think I'm being a
Hopefully this'll be a fairly simple answer, but it's not the easiest thing to
I can't find an answer to this, hopefully it's simple. When a user selects
Very noobish, simple question, which hopefully has an easy answer. My issue basically comes
New to git, so this is hopefully a simple question with a simple answer.
Simple question, hopefully a simple answer: I'd like to do the following: private DateTime
Hopefully there is a simple answer to this as it seems a simple question,
This is hopefully going to be a really simple answer, I'm just not seeing
I have a simple question, which should hopefully have a quick answer. The code

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.