-
-
Save farukterzioglu/e085d73613e03555afcdaab7ab8e611a to your computer and use it in GitHub Desktop.
Set $ ajax to send cookies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajaxSetup({ | |
xhrFields: { | |
withCredentials: true // This setting passes cookies along the request, including our authentication cookie. | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment