withCredentials property is a Boolean that indicates whether cross-site Access-Control requests should be made using credentials such as cookies, authorization headers or TLS client certificates. Setting withCredentials has no effect on same-site requests.
In domino-rest you can set the withCredentials flag using one of the following :
PersonServiceFactory.INSTANCE
.create(person)
.setWithCredentials(true)
.onSuccess(personConsumer::accept)
.onFailed(failedConsumer::accept)
.send();
@POST
@Path("someService/create")
@Produces(MediaType.APPLICATION_JSON)
@WithCredentials(true)
Void registerUser(@RequestBody HashMap<String, String> personalData);
The default value for the annotation is true and if it is not presented on the interface, the flag won't be set and will be left to the default implementation.