aboutsummaryrefslogtreecommitdiff
path: root/contrib/epee
diff options
context:
space:
mode:
authorwoodser <woodser@protonmail.com>2021-08-20 14:17:51 -0400
committerwoodser <woodser@protonmail.com>2021-08-20 14:17:51 -0400
commitec6b4cf9e1abcce19910772060852e6f880f8281 (patch)
treead10620600342143827c4fd0e29256f7a5e01160 /contrib/epee
parentMerge pull request #7818 (diff)
downloadmonero-ec6b4cf9e1abcce19910772060852e6f880f8281.tar.xz
support cors wildcard
Diffstat (limited to 'contrib/epee')
-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;