Annotation Interface CorsDecorator


A CorsService decorator for annotated HTTP services.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Allowed origins.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    Allows all HTTP headers in the CORS "Access-Control-Request-Headers" request header.
    The headers that should be returned in the CORS "Access-Control-Allow-Headers" response header.
    The allowed HTTP request methods that should be returned in the CORS "Access-Control-Allow-Methods" response header.
    boolean
    Determines if cookies are allowed to be added to CORS requests.
    The headers to be exposed to calling clients.
    long
    The value of the CORS "Access-Control-Max-Age" response header which enables the caching of the preflight response for the specified time.
    boolean
    Determines if a "null" origin is allowed.
    The path patterns that this policy is supposed to be applied to.
    boolean
    Determines if no preflight response headers should be added to a CORS preflight response.
    The HTTP response headers that should be added to a CORS preflight response.