ahmadnassri/httpsnippet

View on GitHub
src/targets/javascript/jquery/fixtures/cookies.js

Summary

Maintainability
A
0 mins
Test Coverage
const settings = {
  async: true,
  crossDomain: true,
  url: 'http://mockbin.com/har',
  method: 'POST',
  headers: {
    cookie: 'foo=bar; bar=baz'
  }
};

$.ajax(settings).done(function (response) {
  console.log(response);
});