elements icon indicating copy to clipboard operation
elements copied to clipboard

Add support for setting a cookie parameter along with the other types

Open yvoitenko opened this issue 1 year ago • 1 comments

It is impossible to specify a "cookie" request parameter with "Try it" feature

Context

There seems to be no ability to specify the "cookie" parameter value for trying a sample request. Also, it doesn't appear in the "code samples" section at all. But it is present in the request general description.

Current Behavior

Currently, I can only set those, which are in "query", "path", "header" or request body

Expected Behavior

There's an ability to specify a "cookie" parameter with "Try it" feature, and it appears in the "code samples" section, like the other types and the request body.

image

yvoitenko avatar Oct 08 '24 10:10 yvoitenko

Interestingly, I've found that the cookie is actually included in the request on localhost, but not when deployed. I would assume it has something to do with HTTP vs. HTTPS. I'm using Stoplight Elements via Huma.

braaar avatar Jun 04 '25 06:06 braaar