Search Posts

Category: request

Attaching attribute to RequestContext – pass element from frontend to backend

I have written frontend in angularjs and backend in spring-boot. I need to pass some attribute from backend to frontend. This attribute is some configuration set from frontend should be passed with each request to backend. When it comes to authorization we are using LDAP. The whole aim is to be able to do: String myConf = RequestContextHolder.getRequestAttributes().getAttribute( “myConf”, RequestAttributes.SCOPE_REQUEST); I have no idea how to do it. Can you help me, please? Source: AngularJS