diff options
author | woodser <woodser@protonmail.com> | 2021-08-20 14:17:51 -0400 |
---|---|---|
committer | woodser <woodser@protonmail.com> | 2021-09-17 21:24:37 -0400 |
commit | 8a7f692aabfbe5b08a9fa6323808689bbf13c6ec (patch) | |
tree | 7493dfa6b736ed99d8cba91d889a63773930ea74 /contrib/epee | |
parent | Merge pull request #7906 (diff) | |
download | monero-8a7f692aabfbe5b08a9fa6323808689bbf13c6ec.tar.xz |
support cors wildcard
Diffstat (limited to 'contrib/epee')
-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; |