Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

secureProxy deprecated in cookies #140

@souzajr

Description

@souzajr

Hello,

I'm getting this error message: image

In my middleware, I'm using the session like this:

app.use(session({
    cookieName: 'session',
    encryptionAlgorithm: 'aes256',
    encryptionKey: new Buffer.from(process.env.SESSION_SECRET1),
    signatureAlgorithm: 'sha256-drop128',
    signatureKey: new Buffer.from(process.env.SESSION_SECRET2, 'base64'),
    duration: 3600000,
    cookie: {
        path: '/',
        httpOnly: true,
        secureProxy: true
    }
}))

I'm using Cloudflare's SSL (flexible mode), so the "secure" option does not work for me. What should I do to get this message out? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions