JSFiddle - React, Tailwind, and code Playground
by Timmy Willison
HTML
<script src="http://getfirebug.com/firebug-lite-debug.js"></script>
JavaScript
// onSuccess
var onSuccess = function(data, textStatus, jqXHR) {
console.log(jqXHR.getAllResponseHeaders());
};
// AJAX request
var request = {
'url': 'http://api.drinkwithabraham.com/',
'headers': {
'X-DwA-Source': 'web',
'Content-Type': 'application/json;charset=utf-8'
},
'type': 'GET',
'success': onSuccess
};
// Send
$.ajax(request);