Add method DELETE, PUT into allowedMethods of CORS
Because WebDriver also supports method DELETE,
so you couldn't use delete method unless adding that method
into allowed methods of Cross-Origin Filter.
@@ -110,7 +110,7 @@ public JettyServer(BaseServerOptions options, HttpHandler handler) {
FilterHolder
filterHolder = servletContextHandler.addFilter(CrossOriginFilter.class, "/*", EnumSet
.of(DispatcherType.REQUEST));
- filterHolder.setInitParameter("allowedOrigins", "*");
+ filterHolder.setInitParameter("allowedMethods", "GET,POST,PUT,DELETE,HEAD");
// Warning user
LOG.warning("You have enabled CORS requests from any host. "
