@@ -222,7 +222,7 @@ void HandleHttpRequest(const duckdb_httplib_openssl::Request& req, duckdb_httpli
222
222
// CORS allow - set these headers for all requests
223
223
res.set_header (" Access-Control-Allow-Origin" , " *" );
224
224
res.set_header (" Access-Control-Allow-Methods" , " GET, POST, OPTIONS, PUT" );
225
- res.set_header (" Access-Control-Allow-Headers" , " Content-Type, X-API-Key, Authorization, X-ClickHouse-Format, format " );
225
+ res.set_header (" Access-Control-Allow-Headers" , " * " );
226
226
res.set_header (" Access-Control-Allow-Credentials" , " true" );
227
227
res.set_header (" Access-Control-Max-Age" , " 86400" );
228
228
@@ -341,9 +341,9 @@ void HttpServerStart(DatabaseInstance& db, string_t host, int32_t port, string_t
341
341
// CORS Preflight - no authentication required for OPTIONS requests
342
342
global_state.server ->Options (base_path,
343
343
[](const duckdb_httplib_openssl::Request& /* req*/ , duckdb_httplib_openssl::Response& res) {
344
- res.set_header (" Access-Control-Allow-Methods" , " POST, GET, OPTIONS" );
344
+ res.set_header (" Access-Control-Allow-Methods" , " POST, GET, OPTIONS, PUT " );
345
345
res.set_header (" Content-Type" , " text/html; charset=utf-8" );
346
- res.set_header (" Access-Control-Allow-Headers" , " Content-Type, X-API-Key, Authorization, X-ClickHouse-Format, format " );
346
+ res.set_header (" Access-Control-Allow-Headers" , " * " );
347
347
res.set_header (" Access-Control-Allow-Origin" , " *" );
348
348
res.set_header (" Access-Control-Allow-Credentials" , " true" );
349
349
res.set_header (" Connection" , " close" );
0 commit comments