add support for preflight requ (cors)

This commit is contained in:
2022-08-30 01:52:02 +02:00
parent a34db6505d
commit 217f42b7c6
5 changed files with 125 additions and 1 deletions

View File

@@ -1597,6 +1597,19 @@ return false;
}
bool Request::AddHeader(const wchar_t * name, long value)
{
if( !out_headers.has_key(name) )
{
out_headers.add(name, value);
return true;
}
return false;
}
bool Request::AddHeader(const std::wstring & name, const std::wstring & value)
{
if( !out_headers.has_key(name) )