How to stop Rails from setting a session cookie
18-Aug-2023 856
Recently I was working on a Rails API and I wanted to stop Rails from setting it's _session cookie for API requests.Since these requests are authenticated via an API token, there's no reason for the cookie to be returned to the user.
How to stop Rails from setting a session cookie #ruby #rubydeveloper #rubyonrails #Rails #setting #session #cookie https://rubyonrails.ba/link/how-to-stop-rails-from-setting-a-session-cookie