diff options
author | luigi1111 <luigi1111w@gmail.com> | 2021-09-23 22:23:17 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2021-09-23 22:23:17 -0500 |
commit | 0e6b12de78ee8b28206326316d47ebab44971dec (patch) | |
tree | 4f38a38c972e5bd1b43160adfb2335dc0eeb0f9e | |
parent | Merge pull request #7929 (diff) | |
parent | support cors wildcard (diff) | |
download | monero-0e6b12de78ee8b28206326316d47ebab44971dec.tar.xz |
Merge pull request #7952
8a7f692 support cors wildcard (woodser)
-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; |