use no_cors for importScript

This commit is contained in:
Muki Kiboigo committed 2026-09-04 07:00:01 -07:00
1 parent e195886d43
commit 6002dfe587
1 file changed
+1 -1
+1 -1
View File
@@ -431,7 +431,7 @@ fn importScript(self: *WorkerGlobalScope, arena: Allocator, url: [:0]const u8) !
.method = .GET,
.resource_type = .worker,
.origin = self.origin,
.request_mode = .same_origin,
.request_mode = .no_cors,
.credentials_mode = .same_origin,
.shutdown_callback = HttpClient.noopShutdown, // syncRequest installs its own
}, &self._http_owner) catch |err| {