Skip to content

Conversation

@bvleur
Copy link
Contributor

@bvleur bvleur commented Oct 28, 2015

Setting enableCookies to true in the options of a new SwaggerClient or in the options object of an operation makes the browser include the cookies and other HTTP credentials in it's requests.

Naming the option 'enableCookies' as suggested by user tonytam in IRC.

More information about sending credentials: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials

I've not written tests and not made the jQuery client honor the option.
Is this the way to go?

Setting `enableCookies` to true in the options of a new SwaggerClient or in the options object of an operation makes the browser include the cookies and other HTTP credentials in it's requests.

Naming the option 'enableCookies' as suggested by user tonytam in IRC.

More information about sending credentials: https://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS#Requests_with_credentials
fehguy added a commit that referenced this pull request Nov 27, 2015
enableCookies option in client and operations
@fehguy fehguy merged commit f999509 into swagger-api:master Nov 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants