Annotation Interface Cors.MaxAgeSeconds

Enclosing class:
Cors

@Target({METHOD,TYPE}) @Retention(RUNTIME) @Documented public static @interface Cors.MaxAgeSeconds
Max age.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    long
    Pre-flight response duration.
  • Element Details

    • value

      long value
      Pre-flight response duration. After time expires, a new pre-flight request is required. Corresponds to Access-Control-Max-Age. If not annotated, max age defaults to 1 hour.
      Returns:
      max age as a number of seconds