Annotation Interface CorsDecorators


@Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface CorsDecorators
The containing annotation type for CorsDecorator.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    An array of CorsDecorators.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Specifies that a CORS request should be rejected if it's invalid before being processed further.
  • Element Details

    • value

      CorsDecorator[] value
      An array of CorsDecorators.
    • 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