Skip to content

Commit c846c40

Browse files
committed
Add web/explore.allow_opaque_origin bool setting parse.
1 parent 831edbb commit c846c40

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/parser.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,12 @@ options_metadata parser::load_settings() THROWS
800800
(
801801
"web.origin",
802802
value<network::config::endpoints>(&configured.server.web.origins),
803-
"The allowed origin (http verification), multiple allowed, defaults to empty (disabled)."
803+
"The allowed origin (see CORS), multiple allowed, defaults to empty (disabled)."
804+
)
805+
(
806+
"web.allow_opaque_origin",
807+
value<bool>(&configured.server.web.allow_opaque_origin),
808+
"Allow requests from opaue origin (see CORS), multiple allowed, defaults to true."
804809
)
805810
(
806811
"web.path",
@@ -852,7 +857,12 @@ options_metadata parser::load_settings() THROWS
852857
(
853858
"explore.origin",
854859
value<network::config::endpoints>(&configured.server.explore.origins),
855-
"The allowed origin (http verification), multiple allowed, defaults to empty (disabled)."
860+
"The allowed origin (see CORS), multiple allowed, defaults to empty (disabled)."
861+
)
862+
(
863+
"explore.allow_opaque_origin",
864+
value<bool>(&configured.server.explore.allow_opaque_origin),
865+
"Allow requests from opaue origin (see CORS), multiple allowed, defaults to true."
856866
)
857867
(
858868
"explore.path",

0 commit comments

Comments
 (0)