change CORS interface, add try-catch handler
This commit is contained in:
@@ -27,10 +27,21 @@ public:
|
||||
public:
|
||||
void SetMaxAge(int max_age);
|
||||
void SetAllowCookie(bool allow);
|
||||
void AddValidateUrls(const std::string& url);
|
||||
|
||||
void ClearValidateUrls();
|
||||
void ClearValidateHosts();
|
||||
void ClearValidateMethods();
|
||||
void ClearValidateHeaders();
|
||||
|
||||
void AddValidateUrl(const std::string& url);
|
||||
void AddValidateHost(const std::string& host);
|
||||
void AddValidateMethods(const std::string& method);
|
||||
void AddValidateHeaders(const std::string& header);
|
||||
void AddValidateMethod(const std::string& method);
|
||||
void AddValidateHeader(const std::string& header);
|
||||
|
||||
void AddValidateUrls(const std::set<std::string>& urls);
|
||||
void AddValidateHosts(const std::set<std::string>& hosts);
|
||||
void AddValidateMethods(const std::set<std::string>& methods);
|
||||
void AddValidateHeaders(const std::set<std::string>& headers);
|
||||
};
|
||||
|
||||
extern UNSWSC_DLL_EXPORT CORSConfig GlobalCORSConfig;
|
||||
Reference in New Issue
Block a user