title: What does jQuery.ajax xhrFields: {withCredentials: true} do?
body: <p>I know that this is a newby question, but I am new to learning Ajax. I was reading some code and came across this line </p>
  
  <pre><code>xhrFields: {withCredentials: true}
  </code></pre>
  
  <p>I was able to follow the rest of the code; however, this part is a little confusion. Do you use it to be able to overwrite the credentials?</p>
  
  <p>In the <a href="https://api.jquery.com/jQuery.ajax/" rel="noreferrer">documentation</a> it says the following:</p>
  
  <blockquote>
    <p>xhrFields
    Blockquote</p>
    
    <p>Type: PlainObject</p>
    
    <p>An object of fieldName-fieldValue pairs to set on the native XHR
    object. For example, you can use it to set withCredentials to true for
    cross-domain requests if needed.</p>
  </blockquote>
  
  <p>I kind of get what it is saying. However, I am unsure of what kind of cross-domain requests it is referring to.</p>
  
  <p>I am sorry again for asking this noob question. Please do not downvote my question D:</p>
  
  <p>Have a wonderful day :)!</p>