2

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.

ADyson
  • 57,178
  • 14
  • 51
  • 63
vaibhav kanmeriya
  • 143
  • 1
  • 1
  • 9
  • https://fullcalendar.io/docs/events-json-feed doesn't list any way to do this. You will probably need to build your own request and integrate it with fullcalendar via the events callback function - see https://fullcalendar.io/docs/events-function – ADyson Apr 13 '22 at 12:19

0 Answers0