Annotation Type CorsDecorators

    • 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.
      • 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