My OpenAPI definition includes Cookie authentication. In the Swagger Editor, the curl command works fine, but "try it out" does not add the Cookie
header in requests. Any idea why?
openapi: 3.0.0
servers:
- url: 'XXXXXXX'
info:
description: xxxxx
version: 1.0.0
title: xxxxx
contact:
email: xxxxxx
paths:
'/tenants/{tenant_id}/call/projects':
get:
tags:
- project
operationId: getProjects
parameters:
- name: tenant_id
in: path
required: true
schema:
type: string
responses:
'200':
description: Success
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/project'
security:
- apiKey: []
components:
securitySchemes:
apiKey:
type: apiKey
name: auth-token
in: cookie