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

@@ -54,6 +54,10 @@ public:
static constexpr const wchar_t * accept_language = L"Accept-Language";
static constexpr const wchar_t * authorization = L"Authorization";
static constexpr const wchar_t * allow = L"Allow";
static constexpr const wchar_t * access_control_allow_methods = L"Access-Control-Allow-Methods";
static constexpr const wchar_t * access_control_allow_origin = L"Access-Control-Allow-Origin";
static constexpr const wchar_t * access_control_allow_headers = L"Access-Control-Allow-Headers";
static constexpr const wchar_t * access_control_max_age = L"Access-Control-Max-Age";
/*
* headers' names lower case