mirror of
https://github.com/monero-project/monero.git
synced 2025-06-30 08:17:16 -04:00
RPC Add cross origin resource sharing support
This commit is contained in:
parent
8d511f3c24
commit
69c37200aa
10 changed files with 82 additions and 19 deletions
2
contrib/epee/include/net/http_protocol_handler.h
Normal file → Executable file
2
contrib/epee/include/net/http_protocol_handler.h
Normal file → Executable file
|
@ -54,6 +54,7 @@ namespace net_utils
|
|||
struct http_server_config
|
||||
{
|
||||
std::string m_folder;
|
||||
std::vector<std::string> m_access_control_origins;
|
||||
boost::optional<login> m_user;
|
||||
critical_section m_lock;
|
||||
};
|
||||
|
@ -193,6 +194,7 @@ namespace net_utils
|
|||
response.m_response_code = 200;
|
||||
response.m_response_comment = "OK";
|
||||
response.m_body.clear();
|
||||
|
||||
return m_config.m_phandler->handle_http_request(query_info, response, m_conn_context);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue