Last active
April 8, 2019 16:11
-
-
Save gyfoster/7175369ffc4bb0e8a3edda15d4a54213 to your computer and use it in GitHub Desktop.
Adds a custom header to an HTTP request
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({ | |
beforeSend: function(request) { | |
request.setRequestHeader("APP_USER", "CN=TestUser1, OU=My Org Unit, O=My Org, C=US"); | |
}, | |
url: "/app/rest/list/ADMIN_TYPE", | |
success: function(data) { | |
console.log(data); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment