diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-09-09 15:20:09 -0400 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-09-09 15:20:09 -0400 |
commit | c278c97f1fa3c5c2451d268f62c6dfe6fb665a78 (patch) | |
tree | 8ce74258c1fdb0bd024214ebaf4722c3c61aacaa /contrib | |
parent | Merge pull request #7883 (diff) | |
parent | support cors wildcard (diff) | |
download | monero-c278c97f1fa3c5c2451d268f62c6dfe6fb665a78.tar.xz |
Merge pull request #7884
ec6b4cf support cors wildcard (woodser)
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/epee/include/net/http_protocol_handler.inl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/epee/include/net/http_protocol_handler.inl b/contrib/epee/include/net/http_protocol_handler.inl index 19bdf4ff0..0f4a28c99 100644 --- a/contrib/epee/include/net/http_protocol_handler.inl +++ b/contrib/epee/include/net/http_protocol_handler.inl @@ -668,7 +668,7 @@ namespace net_utils // Cross-origin resource sharing if(m_query_info.m_header_info.m_origin.size()) { - if (std::binary_search(m_config.m_access_control_origins.begin(), m_config.m_access_control_origins.end(), m_query_info.m_header_info.m_origin)) + if (std::binary_search(m_config.m_access_control_origins.begin(), m_config.m_access_control_origins.end(), "*") || std::binary_search(m_config.m_access_control_origins.begin(), m_config.m_access_control_origins.end(), m_query_info.m_header_info.m_origin)) { buf += "Access-Control-Allow-Origin: "; buf += m_query_info.m_header_info.m_origin; |