Skip to content

Lightpanda: the headless browser designed for AI and automation

fix warn log on preflight blocked

Muki Kiboigoc16a3b3585a6
diff --git a/src/network/CorsGate.zig b/src/network/CorsGate.zig
index 886bf4454..e40204f82 100644
--- a/src/network/CorsGate.zig
+++ b/src/network/CorsGate.zig
@@ -62,7 +62,7 @@ fn flushPending(self: *CorsGate, key: []const u8, allowed: bool) void {
transfer.unpark();
if (!allowed) {
- log.warn(.http, "blocked by cors (preflight)", .{ .url = transfer.req.url });
+ log.warn(.cors, "preflight blocked", .{ .url = transfer.req.url });
transfer.failAsync(error.CorsBlocked);
continue;
}