mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-09-15 23:37:42 -04:00
use no_cors for importScript
This commit is contained in:
1 file changed
+1
-1
@@ -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| {
|
||||
|
||||
Reference in new issue
Block a user