response HTTP/1.1 200 OK X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
X-Content-Type-Options: nosniff
Content-Type: application/json; charset=utf-8
Etag: W/"5b78d2950894805d6f862afebecfcb4b"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: 285a145a-43a8-431f-8ab2-8053a2092d91
X-Runtime: 0.321754
Access-Control-Allow-Origin: http://localhost
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Max-Age: 1728000
Access-Control-Allow-Credentials: true
Vary: Origin
Server: WEBrick/1.3.1 (Ruby/2.2.1/2015-02-26)
Date: Wed, 06 Jan 2016 14:37:40 GMT
Content-Length: 164
Connection: Keep-Alive
Set-Cookie: request_method=POST; path=/ _rails_register_app_session=R3BXeUtwKzR4TnBnNGN1TUpnelR0SG5FOVNqU0dSa2U2SU9ESTYvSjJiOGVKT01GNG1nNzFyTVJ2ZmQ1L0ZQNDFhTXgySXNrQVJUK0syYW1CYnpaU1E9PS0tWlNhajZsc3dwRUQ0OW1wMzZoaFBuUT09--f1 ------------------------我是分界限---------------------- 我用异步请求登录 $.post('http:localhost/login',"name=xxx&passwd=xxxx") 登录成功后_rails_register_app_session 没有被保存,(页面不再 rails app 内) 但是用 chrome 的 postman 却有效