From 384ef111b90b7bcb04b8ff477eca7218a99cb98d Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 18 Aug 2011 21:22:48 +0900 Subject: Added --rpc-allow-origin-all option. This option adds Access-Control-Allow-Origin header field with value '*' to the RPC response. --- src/OptionHandlerFactory.cc | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/OptionHandlerFactory.cc') diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index ae2db34a..87fd87b5 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -595,6 +595,15 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() op->addTag(TAG_ADVANCED); handlers.push_back(op); } + { + SharedHandle op(new BooleanOptionHandler + (PREF_RPC_ALLOW_ORIGIN_ALL, + TEXT_RPC_ALLOW_ORIGIN_ALL, + A2_V_FALSE, + OptionHandler::OPT_ARG)); + op->addTag(TAG_RPC); + handlers.push_back(op); + } { SharedHandle op(new BooleanOptionHandler (PREF_RPC_LISTEN_ALL, -- cgit