Skip to content

How to activate "withCredentials: true" support from "swagger-js" #5126

@dalbani

Description

@dalbani

Hi,

Thanks to the code landed in swagger-api/swagger-js#1189, swagger-js is now capable of sending credentials (i.e. cookies) within XHR requests in a CORS context.
The documentation mentions to use the following construct:

SwaggerClient.http.withCredentials = true; // this activates CORS, if necessary

But it's not clear to me how to set this flag with SwaggerUI, in particular when using with the SwaggerUIBundle class as shown on https://github.com/swagger-api/swagger-ui/blob/master/dist/index.html#L41?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions