Set issuable_sort and diff_view cookies to secure when possible Closes #49120 See merge request gitlab-org/gitlab-ce!21442