Skip to content

Commit d0b95a0

Browse files
committed
[grid] Adding handler for options when using cors and creating a session
[skip ci]
1 parent 67d544b commit d0b95a0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

java/src/org/openqa/selenium/grid/sessionqueue/NewSessionQueue.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
import static org.openqa.selenium.remote.http.Route.combine;
4545
import static org.openqa.selenium.remote.http.Route.delete;
4646
import static org.openqa.selenium.remote.http.Route.get;
47+
import static org.openqa.selenium.remote.http.Route.options;
4748
import static org.openqa.selenium.remote.http.Route.post;
4849

4950
public abstract class NewSessionQueue implements HasReadyState, Routable {
@@ -67,6 +68,8 @@ protected NewSessionQueue(Tracer tracer, Secret registrationSecret) {
6768
);
6869
return addToQueue(sessionRequest);
6970
}),
71+
options("/session")
72+
.to(() -> req -> new HttpResponse()),
7073
post("/se/grid/newsessionqueue/session")
7174
.to(() -> new AddToSessionQueue(tracer, this))
7275
.with(requiresSecret),

0 commit comments

Comments
 (0)