diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-18 21:22:48 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-08-18 21:24:18 +0900 |
| commit | 384ef111b90b7bcb04b8ff477eca7218a99cb98d (patch) | |
| tree | ab6627f0f2f15d98f78f3ad0e83c703fad871161 /src/OptionHandlerFactory.cc | |
| parent | 4c1c38a33f669ce09fe9b6cd046b270cf70253ac (diff) | |
Added --rpc-allow-origin-all option.
This option adds Access-Control-Allow-Origin header field with value
'*' to the RPC response.
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index ae2db34a..87fd87b5 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -597,6 +597,15 @@ OptionHandlers OptionHandlerFactory::createOptionHandlers() } { SharedHandle<OptionHandler> 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<OptionHandler> op(new BooleanOptionHandler (PREF_RPC_LISTEN_ALL, TEXT_RPC_LISTEN_ALL, A2_V_FALSE, |
