AJAX リクエストで Cookie 値を設定したいのですが、以下のコードが機能しません。
$.ajax({
type: "GET",
url: "http://example.com",
cache: false,
setCookies: "lkfh89asdhjahska7al446dfg5kgfbfgdhfdbfgcvbcbc dfskljvdfhpl",
crossDomain: true,
dataType: 'json',
success: function (data) {
alert(data);
});
ヘッダーに Cookie を設定するにはどうすればよいですか?