Update `cookies` helper on all HTTP requests
#27586

maclover7 wants to merge maclover7:jm-fix-27584 into rails:master

We do not currently have an analysis of these two commits