Published
- 1 min read
pass header in ajax
The solution for this is noted below
pass header in ajax
Solution
$.ajax({
url: '/test',
headers: { 'X-Test-Header': 'test-value' }
})
Try other methods by searching on the site. That is if this doesn’t work