Package io.quarkus.vertx.http.security
Interface CORS
- All Known Implementing Classes:
CORS.Builder.CORSImpl
@Experimental("This API is currently experimental and might get changed")
public sealed interface CORS
permits CORS.Builder.CORSImpl
This class provides a way to configure the Quarkus cross-origin resource sharing (CORS) filter at the HTTP layer level.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThe Quarkus CORS filter configuration builder. -
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic CORS.Builderbuilder()Creates the CORS configuration builder.static CORS.BuilderCreate a new CORS configuration builder with given origins.
-
Method Details
-
builder
Creates the CORS configuration builder.- Returns:
- new
CORS.Builderinstance
-
origins
Create a new CORS configuration builder with given origins.- Parameters:
origins- seeCORS.Builder.origins(Set)- Returns:
- new
CORS.Builderinstance with given origins
-