Pass "key" in request headers in a jQuery AJAX POST call

QuestionsCategory: AjaxPass "key" in request headers in a jQuery AJAX POST call
Umar asked 9 months ago

How to Pass “key” in request headers in a jQuery AJAX POST call

1 Answers
Best Answer
Shehryar Khan Staff answered 9 months ago
$.ajax({
    url: "/testing",
    headers: {"key": "user-key"}
});