Skip to content

Commit aea290f

Browse files
committed
Add origin config parse to bitcoind.
1 parent e21307e commit aea290f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/parser.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,16 @@ options_metadata parser::load_settings() THROWS
916916
value<network::config::endpoints>(&configured.server.bitcoind.hosts),
917917
"The host name (http verification), multiple allowed, defaults to empty (disabled)."
918918
)
919+
(
920+
"bitcoind.origin",
921+
value<network::config::endpoints>(&configured.server.bitcoind.origins),
922+
"The allowed origin (see CORS), multiple allowed, defaults to empty (disabled)."
923+
)
924+
(
925+
"bitcoind.allow_opaque_origin",
926+
value<bool>(&configured.server.bitcoind.allow_opaque_origin),
927+
"Allow requests from opaue origin (see CORS), multiple allowed, defaults to false."
928+
)
919929

920930
/* [electrum] */
921931
////(

0 commit comments

Comments
 (0)