'How to pass custom http request header parameters in full calendar v5 event sources
The headers and beforeSend parameter does not work.
var calendar = new FullCalendar.Calendar(calendarEl, {
headerToolbar: {
start: 'title',
center: 'dayGridMonth',
end: 'prev,next'
},
eventSources: [{
url: 'get_data',
extraParams: params,
method: 'POST',
headers: {
'custom_param': 'val',
},
},],
});
calendar.render();
I want to send some custom parameters on request header which is used by server.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
