js code:
$.ajax({
type : "GET",
async : true,
url : url,
contentType: "text/html",
dataType : "json",
beforeSend : function(request) {
request.setRequestHeader("X-Test-Token", "abc");
},
...
});
when I get the request headers with cherrypy.request.headers,
I can't see the "X-Test-Token" in it.
how I can get the custom header in cherrypy?