We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Reactjs Scheduler integration with backend using springboot java, eureka gateway

Hello Syncfusion team.

How can I make APIs in the backend using java spring-boot, eureka and gateway? I am confused about that and also integrating ej2 reactjs scheduler component with backend. Also, the frontend and backend are both authenticated using keycloak so I am facing issues in passing keycloak token to the backend.


1 Reply

RV Ravikumar Venkatesan Syncfusion Team November 7, 2022 07:14 PM UTC

You can send custom headers to the server end with help of the DataManager headers property as shown in the below snippet.


Sample: https://stackblitz.com/edit/ej2-react-schedule-remote-data-with-custom-adaptor?file=index.js

UG: https://ej2.syncfusion.com/react/documentation/data/how-to/#adding-custom-headers


[index.js]

  const dataManager = new DataManager({

    url: http://localhost:54738/Home/LoadData,

    crudUrl: http://localhost:54738/Home/UpdateData,

    adaptor: new UrlAdaptor,

    crossDomain: true,

    headers: [{ 'syncfusion': 'true' }, { token: 'Your token here.' }]

  });



Attachment: ej2reactschedulebackend_6f22138b.zip

Loader.
Live Chat Icon For mobile
Up arrow icon