Skip to content

Instantly share code, notes, and snippets.

@ponelat
Last active August 29, 2015 14:22
Show Gist options
  • Save ponelat/ee05fa26eba382bfc665 to your computer and use it in GitHub Desktop.
Save ponelat/ee05fa26eba382bfc665 to your computer and use it in GitHub Desktop.
Send Cookies with CORs (client side only)
@ponelat
Copy link
Author

ponelat commented Jun 11, 2015

The authorizations option is a shortcut version that gives access the each request before executing it.
This is in lieu of

success: function() {
   window.swaggerUi.api.clientAuthorizations.add('someAuth', function() { /* modify request obj */} );
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment