java.lang.Object
io.helidon.webserver.cors.Cors
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceWhether to allow credentials.static @interfaceAllowed headers.static @interfaceAllowed methods.static @interfaceAllowed origins.static @interfaceEnable support for CORS for an endpoint method (such as an OPTIONS handler) and allow default CORS behavior (any origin, any header, any method, no expose headers), do not allow credentials, and max age is set to 1 hour.static @interfaceExpose headers.static @interfaceMax age. -
Field Summary
Fields -
Method Summary
-
Field Details
-
ALLOW_ALL
String used to allow all origins, headers, and methods.- See Also:
-