-
- All Implemented Interfaces:
public class HttpAllowedMethodsPlugin extends Plugin<Void>
Plugin adding automatically the Access-Control-Allow-Methods when sending an OPTIONS request to a valid path.
The Access-Control-Allow-Methods response header specifies one or more methods allowed when accessing a resource in response to a preflight request.
e.g.:
Access-Control-Allow-Methods: POST, DELETE
-
-
Constructor Summary
Constructors Constructor Description HttpAllowedMethodsPlugin()
-
Method Summary
Modifier and Type Method Description Unit
onStart(JavalinConfig config)
Called when the plugin is applied to the Javalin instance. -
-
Method Detail
-
onStart
Unit onStart(JavalinConfig config)
Called when the plugin is applied to the Javalin instance.
-
-
-
-