Annotation Type CorsDecorators
-
@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface CorsDecorators
The containing annotation type forCorsDecorator
.
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description CorsDecorator[]
value
An array ofCorsDecorator
s.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description boolean
shortCircuit
Specifies that a CORS request should be rejected if it's invalid before being processed further.
-
-
-
Element Detail
-
value
CorsDecorator[] value
An array ofCorsDecorator
s.
-
-
-
shortCircuit
boolean shortCircuit
Specifies that a CORS request should be rejected if it's invalid before being processed further.CORS headers are set after a request is processed. This may not always be desired and this setting will check that the origin is valid and if it is not valid no further processing will take place, and an error will be returned to the calling client.
- Default:
- false
-
-