-
-
Notifications
You must be signed in to change notification settings - Fork 5
With credentials
Ahmad K. Bawaneh edited this page Jul 10, 2020
·
1 revision
withCredentials property is a Boolean that indicates whether or not 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 :
- Directly set the value on the request instance :
PersonServiceFactory.INSTANCE
.create(person)
.setWithCredentials(true)
.onSuccess(personConsumer::accept)
.onFailed(failedConsumer::accept)
.send();
- Using the
@WithCredentials
annotation which has a boolean value, default value istrue
@POST
@Path("someService/create")
@Produces(MediaType.APPLICATION_JSON)
@WithCredentials(true)
Void registerUser(@RequestBody HashMap<String, String> personalData);
if the annotation not presented on the interface, the flag wont be set and will be left to the default implementation.
- Home
- Quick start
- Sharing clients
-
Configuration
- Locating resource classes
- Service root
- Resource root
- Http methods
- Service method path mapping
- Service path
- Query parameters
- Path parameters
- Header parameters
- Date format
- Request body
- Request and Response mapping
- Produces and Consumes
- Success codes
- Timeout and maximum retries
- With credentials
- Custom request URL
- Global interceptors
- Default failed response handler
- Interface inheritance
- Multipart form data