diff options
author | woodser <woodser@protonmail.com> | 2021-08-20 14:17:51 -0400 |
---|---|---|
committer | woodser <woodser@protonmail.com> | 2021-08-20 14:17:51 -0400 |
commit | ec6b4cf9e1abcce19910772060852e6f880f8281 (patch) | |
tree | ad10620600342143827c4fd0e29256f7a5e01160 /contrib | |
parent | Merge pull request #7818 (diff) | |
download | monero-ec6b4cf9e1abcce19910772060852e6f880f8281.tar.xz |
support cors wildcard
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; |