When we write a
HTML page with
form tag and an
action attribute and a submit button. As soon as we click on submit a request is sent (with cookies) to the
URL which was the value of
But if we send cross domain request to the same domain with JS's
XHR cookies won't be sent.
In both cases, requests are sent to another domain but still cookies are sent with the first case only why so?