Skip to content

Instantly share code, notes, and snippets.

@ponelat
Created June 19, 2015 06:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponelat/bda3422d00734d4fc9fa to your computer and use it in GitHub Desktop.
Save ponelat/bda3422d00734d4fc9fa to your computer and use it in GitHub Desktop.
Send cookies back to server
// ...
window.swaggerUi = new SwaggerUi({
url: url,
useJQuery: true,
authorizations: {
makeCredentialed: function() {
this.xhrFields = {withCredentials: true}; // The important bit, along with useJQuery
return true;
}
},
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment