@Retention(value=RUNTIME) @Target(value={TYPE,METHOD}) public @interface CorsDecorators
CorsDecorator.| Modifier and Type | Required Element and Description |
|---|---|
CorsDecorator[] |
value
An array of
CorsDecorators. |
| Modifier and Type | Optional Element and Description |
|---|---|
boolean |
shortCircuit
Specifies that a CORS request should be rejected if it's invalid before being processed further.
|
public abstract CorsDecorator[] value
CorsDecorators.public abstract boolean shortCircuit
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.
Copyright © 2020 LeanCloud. All rights reserved.