Skip to content

[feat] Implementado opção de HttpOnly para permitir setar token via Cookie#45

Merged
viniciussanchez merged 1 commit into
HashLoad:masterfrom
davisouzatb:patch-1
Dec 11, 2024
Merged

[feat] Implementado opção de HttpOnly para permitir setar token via Cookie#45
viniciussanchez merged 1 commit into
HashLoad:masterfrom
davisouzatb:patch-1

Conversation

@davisouzatb
Copy link
Copy Markdown
Contributor

Com essa implementação é possivel enviar via Cookie durante a geração apenas enviando Header ex:

CookieHeader := 'authorization=bearer ' + Token.GetValue('token').Value +'; Max-Age=3600; Path=/; HttpOnly';
 Res.AddHeader('Set-Cookie', CookieHeader);

@viniciussanchez viniciussanchez merged commit 1662f42 into HashLoad:master Dec 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants