Can I add Events to AJAX request headers?
Can I add CrazyTrain/UX Events to AJAX request headers from the client-side like we do on the server-side? e.g. [pseudo-code]
```
$.ajax("/Document/v1/FullText/i3489314632987329487321984/whatever", {
cobaltHost: Cobalt.Vertical.Document,
type: "POST",
contentType: "application/json",
headers: {
"x-cobalt-events": JSON.stringify([{...}])
}
});
```
Or do I have to send a direct AJAX call to the Events vertical instead? e.g. [pseudo-code]
```
$.ajax(Cobalt.Configuration.ClientEventURL, {
cobaltHost: Cobalt.Vertical.Events,
type: "POST",
contentType: "application/json",
data: JSON.stringify([{...}])
});
```
Everything I've seen in the Cobalt JS world would suggest the latter. =(