ngolubchuk
10 years agoOccasional Contributor
Interactive API Docs 'Try it out!' Headers
Hi,
I tried to add 'Cookie' header to my request, but there isn't this header in request that comes to web app.
Here is my header spec:
parameters: - name: "Cookie" in: header type: string default: "someCookies"
I also tried to add header through securityDefinitions.
I define my security definitions:
securityDefinitions: cookie: name: Cookie type: apiKey in: header
And add
security: - cookie: []
to my request operation.
But I can't see anything related to security at Interactive API Docs page. And header isn't added.
Are there any restrictions on what headers I can add to my requests when I use 'Try it out!' operation? Or am I doing something wrong?
Thanks in advance for your assistance.
Nikita.