java.lang.Object
io.helidon.webserver.cors.Cors

public final class Cors extends Object
Container class for CORS related annotations and types.

Annotations on this type are expected to be placed on Helidon Declarative HTTP:

  • Endpoint Class - this will add an options method handling for pre-flight checks for all sub-paths of the current endpoint
  • Options method - this will only handle the path specified for the options method itself
These annotations cannot be anywhere else and the compilation will fail if defined anywhere else.
  • Field Details

    • ALLOW_ALL

      public static final String ALLOW_ALL
      String used to allow all origins, headers, and methods.
      See Also: