Is an Ajax request guaranteed to send cookies? Is an Ajax request guaranteed to send cookies? ajax ajax

Is an Ajax request guaranteed to send cookies?


Ajax is just a "way" to generate HTTP request. It is still a browser doing it so it will follow browser "rules". Can never be 100% sure but I would say yes.


Like other answer suggests, AJAX is a way to request service from server in an asynchronous way. However, internally HTTP protocol is used for AJAX too, which says that cookies if there any must be send with HTTP requests(sync or async). Thus, most of the modern browser adheres to it, otherwise it's regarded as bug in browser implementation.