Sending cookie session id with Swagger 3.0

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.

Leave a Comment