Skip to content

Allow HttpOnly Flag for authentication cookies #807

Description

@dypsilon

As far as I understand right now it's possible to use HttpOnly flag for state, but not for cookie auth.

See: https://www.owasp.org/index.php/HttpOnly

Expected:

server.auth('session', {
    scheme: 'cookie',
    password: 'secret',
    cookie: 'sid-example',
    redirectTo: '/login',
    isHttpOnly: true
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureNew functionality or improvement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions