Skip to content

HTTP Headers

Fatih Koca edited this page Nov 27, 2019 · 1 revision

An object of additional header key/value pairs to send along with requests using the XMLHttpRequest transport.

Vue.ajax.get("http://example.com", {}, {
    headers: {
        "Content-Type": "application/json",
        "Accept": "application/json, text/plain, */*"
    }
});
Clone this wiki locally