Created
September 28, 2015 19:10
-
-
Save jsenin/eb493bb98652804ad28f to your computer and use it in GitHub Desktop.
one line jquery to do a request using OPTIONS at headers trying to retrieve supported methods for API REST services
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.ajax('/users/new', {type:'OPTIONS'} ).done( function( data, textStatus) { console.log('->', data ); } ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment