thunder-client-support icon indicating copy to clipboard operation
thunder-client-support copied to clipboard

express cookie-parser http-only attribute set true blocks cookie

Open Andromeda7177 opened this issue 3 years ago • 2 comments

Describe the bug issue: when cookie-parser attribute httpOnly set to true does not allow cookie data pass. The client browser outside thunder-client allows the cookies to pass. instead empty data [Object: null prototype] {}

To Reproduce set httpOnly: true.
perform query

app.use(cookies-parser()) is placed before the routes

Expected behavior expect the thunder-client to allow cookies data pass.

Platform:

  • OS: macOS 10.16
  • vscode version: 1.64.2
  • extension version: v1.12.2

Solution: temp work around to set attribute httpOnly: false. when false the thunder-client works as expected

Andromeda7177 avatar Feb 27 '22 23:02 Andromeda7177

Hi @Andromeda7177 thanks for reporting the bug

rangav avatar Feb 28 '22 04:02 rangav

Hi @Andromeda7177 what is the url, you used in both cases?

rangav avatar Feb 28 '22 05:02 rangav

Try this solution https://github.com/rangav/thunder-client-support/issues/872#issuecomment-1492728459

I am closing this issue as it's not related to TC, Feel free to reopen if needed

rangav avatar Apr 01 '23 04:04 rangav