aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee/include
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-09-09 15:20:09 -0400
committerluigi1111 <luigi1111w@gmail.com>2021-09-09 15:20:09 -0400
commitc278c97f1fa3c5c2451d268f62c6dfe6fb665a78 (patch)
tree8ce74258c1fdb0bd024214ebaf4722c3c61aacaa /contrib/epee/include
parentMerge pull request #7883 (diff)
parentsupport cors wildcard (diff)
downloadmonero-c278c97f1fa3c5c2451d268f62c6dfe6fb665a78.tar.xz
Merge pull request #7884
ec6b4cf support cors wildcard (woodser)
Diffstat (limited to 'contrib/epee/include')
-rw-r--r--contrib/epee/include/net/http_protocol_handler.inl2
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;