add config options for testing the Origin header in cors requests

- allow_all_cors_origins - whether or not to allow all origins
- allowed_cors_origins - a list of allowed origins (used if allow_all_cors_origins is false)
This commit is contained in:
tomasz.sowa committed 2022-08-31 20:42:42 +02:00
1 parent 778ed01a55
commit a19158cb62
7 files changed
+117 -13

No files matched your search

+3
View File
@@ -350,6 +350,9 @@ void Config::AssignValues()
add_header_cache_no_store_in_htmx_request = Bool(L"add_header_cache_no_store_in_htmx_request", true);
request_queue_job_limit = Size(L"request_queue_job_limit", 1024);
allow_all_cors_origins = Bool(L"allow_all_cors_origins", false);
ListText(L"allowed_cors_origins", allowed_cors_origins);
}