Annotation Interface CORS


@Retention(RUNTIME) @Target({TYPE,PACKAGE}) @Documented public @interface CORS
Defines CrossOriginSharingPolicy default policy for all annotated types or packages.
Author:
cdivilly
  • Element Details

    • value

      Returns:
      CrossOriginSharingPolicy instance
      Default:
      ALLOW
    • allowedOrigins

      String[] allowedOrigins
      The set of Web Origins that are permitted to access this resource
      Returns:
      Array of Web Origins
      Default:
      {}
    • dynamicAllowedOriginsSource

      String dynamicAllowedOriginsSource
      Specifies the source of dynamically allowed origins for cross-origin requests. This attribute can be used to configure the dynamic allowed origins for resources annotated with this CORS policy.
      Returns:
      the source of dynamically allowed origins, or an empty string if not specified
      Default:
      ""