Internal Server Error on Strapi App (Google OAuth Provider)
### Node Version

20.0

### NPM/Yarn/PNPM Version

NPM 10

### Strapi Version

5.9.0

### Operating System

Linux (RedHat/CentOS)

### Database

MySQL

### Javascript or Typescript

Typescript

### Reproduction URL

_No response_

### Bug Description

Hi I'm getting this error and I have read multiple docs on this and still haven't found a solution

https://example.com/api/connect/google

Cannot send secure cookie over unencrypted connection

### Steps to Reproduce

...

### Expected Behavior

...

### Logs

```shell
0|cms  | [2025-02-15 01:36:28.963] http: GET /api/connect/google (490 ms) 302
0|cms  |   Error: Cannot send secure cookie over unencrypted connection
0|cms  |       at Cookies.set (/Users/asoiso/Asoiso/code/repo/mix-fe/common/temp/node_modules/.pnpm/cookies@0.9.1/node_modules/cookies/index.js:126:11)
0|cms  |       at ContextSession.save (/Users/asoiso/Asoiso/code/repo/mix-fe/common/temp/node_modules/.pnpm/koa-session@6.4.0/node_modules/koa-session/lib/context.js:341:22)
0|cms  |       at ContextSession.commit (/Users/asoiso/Asoiso/code/repo/mix-fe/common/temp/node_modules/.pnpm/koa-session@6.4.0/node_modules/koa-session/lib/context.js:244:16)
0|cms  |       at session (/Users/asoiso/Asoiso/code/repo/mix-fe/common/temp/node_modules/.pnpm/koa-session@6.4.0/node_modules/koa-session/index.js:46:20)
0|cms  |       at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
0|cms  |       at async middleware (/Users/asoiso/Asoiso/code/repo/mix-fe/common/temp/node_modules/.pnpm/@strapi+core@5.9.0_@strapi+data-transfer@5.9.0_@types+node@20.4.5_@types+react-dom@18.2.7_@ty_lutp46xinauxy3tcmo3wp6oopm/node_modules/@strapi/core/dist/services/metrics/middleware.js:22:5)
```

### Code Snippets

server.js
```
export default ({ env }) => ({
  host: env('HOST', '0.0.0.0'),
  port: env.int('PORT', 1337),
  app: {
    keys: env.array('APP_KEYS'),
  },
  proxy: { koa: true },
  url: env('PUBLIC_URL', 'http://localhost:1337'),
});
```

server.js
```
export default ({ env }) => ({
  host: env('HOST', '0.0.0.0'),
  port: env.int('PORT', 1337),
  app: {
    keys: env.array('APP_KEYS'),
  },
  proxy: true,
  url: env('PUBLIC_URL', 'http://localhost:1337'),
});
```

### Media

_No response_

### Additional information

_No response_

### Confirmation Checklist

- [x] I have checked the existing [issues](https://github.com/strapi/strapi/issues) for duplicates.
- [x] I agree to follow this project's [Code of Conduct](https://github.com/strapi/strapi/blob/develop/CODE_OF_CONDUCT.md).