Skip to content

Commit f0f6a24

Browse files
committed
[grid] Fixing allow cors parameter
1 parent ddd4ccc commit f0f6a24

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java/server/src/org/openqa/selenium/grid/server/BaseServerFlags.java

+4-2
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,11 @@ public class BaseServerFlags implements HasRoles {
4646
@ConfigValue(section = "server", name = "max-threads", example = "12")
4747
private int maxThreads = Runtime.getRuntime().availableProcessors() * 3;
4848

49-
@Parameter(description = "Whether the Selenium server should allow web browser connections from any host", names = "--allow-cors")
49+
@Parameter(names = "--allow-cors",
50+
description = "Whether the Selenium server should allow web browser connections from any host",
51+
arity = 1)
5052
@ConfigValue(section = "server", name = "allow-cors", example = "true")
51-
private Boolean allowCORS = false;
53+
private Boolean allowCORS;
5254

5355
@Parameter(description = "Private key for https", names = "--https-private-key")
5456
@ConfigValue(section = "server", name = "https-private-key", example = "\"/path/to/key.pkcs8\"")

0 commit comments

Comments
 (0)