简体   繁体   中英

How to get request headers cookie in rails 5 api

Im trying to get the cookies, from the controller, with puts request.headers['Cookie'] and nothing is showing in my terminal.

My see the details in chrome tools:

在此处输入图片说明

How to get the cookie, please?

Edit

See gist for header response .

只用饼干

puts cookies[:name]

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM