Kong / Kong/insomnia

Add "Response -> Cookie" template tag

Open
#5,802 1 comment 0 reactions 0 assignees View on GitHub
C-improvement S-unverified
Dominant language
TypeScript
Stars
40k
Forks
2.4k
Avg merge
2d 13h
Merged PRs (30d)
61

Description

The `{% response %}` template tag currently allows us to chain requests and use some attributes from the previous request as templated values. Great! Unfortunately, the cookies of the chained request are not available.

I've got some APIs I need to access which requires you to use a previously fetched cookie as a Bearer Token, so adding this would be very useful.

(I've got some code ready for it in: https://github.com/Kong/insomnia/compare/develop...strokirk:insomnia:response-cookie-attribute?expand=1)

Contributor guide

Open the contributing guide

Research direction

Start at the implementation of the `{% response %}` template tag and inspect the linked response-cookie-attribute comparison for context. Make cookies from the chained request available as templated values, including for use as a Bearer Token, and verify the tag still supports existing chained-request attributes.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.