1 year ago
#373062
vaibhav kanmeriya
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.
javascript
ajax
fullcalendar
fullcalendar-5
0 Answers
Your Answer