応答ヘッダーに有効な「set-cookie」値を含むサーバー応答を受信すると、アプリケーションは Cookie を保存しません。
Heroku 上の Rails サーバーは、CORS (クロスドメイン ajax リクエスト) 用にセットアップされています。Access-Control-Allow-Credentials = True およびメソッド = POST、GET。
応答に set-cookie が含まれるログイン要求は次のとおりです。
Ext.Ajax.request({
url: 'http://myurl/log_user_in.json',
params: { username: user, password: pass, app_id: id },
method: "POST" });
アプリケーションが Cookie を保存しない理由について、ヘルプが必要です。すなわち。を実行する
document.cookie
と、「set-cookie」を取得した後、document.cookie = ''
ご協力いただきありがとうございます。