
- strapi
Fixing “Cannot Send Secure Cookie Over Unencrypted Connection” in Strapi v5 on Heroku with Google OAuth
August 13, 2025
Learn how to fix the “Cannot send secure cookie over unencrypted connection” error in Strapi v5 when deploying on Heroku with Google OAuth. This guide explains why the issue happens, how to trust Heroku’s proxy correctly, and the exact configuration changes needed to make Secure cookies work.