-
- All Implemented Interfaces:
public final class CorsPlugin extends Plugin<CorsPluginConfig>
The CORS plugin bundles the functionality to set CORS headers for some or all origins as required.
-
-
Constructor Summary
Constructors Constructor Description CorsPlugin(Consumer<CorsPluginConfig> userConfig)
-
Method Summary
Modifier and Type Method Description Unit
onStart(JavalinConfig config)
Called when the plugin is applied to the Javalin instance. -
-
Constructor Detail
-
CorsPlugin
CorsPlugin(Consumer<CorsPluginConfig> userConfig)
-
-
Method Detail
-
onStart
Unit onStart(JavalinConfig config)
Called when the plugin is applied to the Javalin instance.
-
-
-
-