-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set HTTP headers to enable SharedArrayBuffer for all requests
Previously, I thought we needed to set these HTTP headers for the web worker to enable SharedArrayBuffer usage, but we actually need to set them for requests to the top-level web page. Therefore, ensure the crossorigin attribute is added to script/link tags for cross-origin resources.
- Loading branch information
Showing
4 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,21 @@ | ||
<link href="https://fonts.gstatic.com" crossorigin="true" rel="preconnect" /> | ||
<link href="https://fonts.gstatic.com" crossorigin rel="preconnect" /> | ||
<link | ||
as="style" | ||
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Roboto+Slab:wght@400;700&family=Space+Mono&display=swap" | ||
crossorigin | ||
rel="preload" | ||
/> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Roboto+Slab:wght@400;700&family=Space+Mono&display=swap" | ||
crossorigin | ||
media="print" | ||
onload='this.media="all"' | ||
rel="stylesheet" | ||
/> | ||
<noscript> | ||
<link | ||
href="https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;1,400;1,500&family=Roboto+Slab:wght@400;700&family=Space+Mono&display=swap" | ||
crossorigin | ||
rel="stylesheet" | ||
/> | ||
</noscript> |