It is said that \"To define cookie authentication, use API keys instead.\" in the official documentation
https://swagger.io/docs/specification/describing-parameters
Swagger UI and Swagger Editor currently do not support sending cookies in "try it out" requests:
https://github.com/swagger-api/swagger-js/issues/1163
As the developers explain, the issue is that it's almost impossible to send arbitrary cookie data to a different origin from within the browser.
SwaggerHub supports cookie auth and cookie parameters though. SwaggerHub sends "try it out" requests from its servers rather than from your browser, which makes it possible to send requests with a user-defined Cookie
header.
Disclosure: I work for the company that makes SwaggerHub.