Skip to content

Commit

Permalink
🐛 Not update cookies when is a batch request
Browse files Browse the repository at this point in the history
  • Loading branch information
djpremier committed Apr 7, 2023
1 parent 2f664ef commit cbe90cd
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ def refresh_headers
# update the response header
response.headers.merge!(_auth_header_from_batch_request)

# set a server cookie if configured
if DeviseTokenAuth.cookie_enabled
# set a server cookie if configured and is not a batch request
if DeviseTokenAuth.cookie_enabled && !@is_batch_request
set_cookie(_auth_header_from_batch_request)
end
end # end lock
Expand Down

0 comments on commit cbe90cd

Please sign in to comment.