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
xhrFields: {withCredentials: true}
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?
In the documentation it says the following:
xhrFields Blockquote
Type: PlainObject
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.
I kind of get what it is saying. However, I am unsure of what kind of cross-domain requests it is referring to.
I am sorry again for asking this noob question. Please do not downvote my question D:
Have a wonderful day :)!