pass header in ajax code example Example: pass header in ajax Click to copy$.ajax({ url: "/test", headers: {"X-Test-Header": "test-value"} });