mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-24 05:25:20 -04:00
better no cors opaque behavior
This commit is contained in:
3 files changed
+4
-4
No files matched your search
@@ -1706,7 +1706,7 @@ fn processOneMessage(self: *Client, msg: http.Handles.MultiMessage, transfer: *T
|
||||
try transfer.materializeResponse(msg.conn, .{});
|
||||
|
||||
// Validate the headers for the response with CORS.
|
||||
if (transfer._cors_cross_origin) {
|
||||
if (transfer._cors_cross_origin and transfer.req.request_mode == .cors) {
|
||||
CorsGate.validateResponse(transfer) catch |err| {
|
||||
self.removeConn(msg.conn);
|
||||
transfer._conn = null;
|
||||
|
||||
Reference in new issue
Block a user