Skip to content

Commit

Permalink
Add Origin Trial token for Subgroups in localhost:8080 (gpuweb#3939)
Browse files Browse the repository at this point in the history
* Add Origin Trial token for Subgroups in localhost:8080

Adds a localhost:8080 token to standalone/index.html for local testing.

https://crbug.com/358117283

Followup to gpuweb#3895

* Remove the OT token from dev_server.ts
  • Loading branch information
dneto0 authored Sep 6, 2024
1 parent eca9b0d commit 6c236a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 0 additions & 4 deletions src/common/tools/dev_server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@ const app = express();

// Send Chrome Origin Trial tokens
app.use((_req, res, next) => {
res.header('Origin-Trial', [
// "WebGPU Subgroups Feature" token for http://localhost:8080
'AkMLfHisU+Fsbpi9g6tfKSZF4ngpsmjW4Oai360fUvZE2rgSPZDWSWb8ryrliJX5HR/Rw0yig0ir9el2hrnODwcAAABaeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjgwODAiLCJmZWF0dXJlIjoiV2ViR1BVU3ViZ3JvdXBzRmVhdHVyZXMiLCJleHBpcnkiOjE3Mzk5MjMxOTl9',
]);
next();
});

Expand Down
4 changes: 3 additions & 1 deletion standalone/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width" />
<!-- Chrome "WebGPU Subgroups Features" origin trial token for https://gpuweb.github.io (see dev_server.ts for localhost tokens) -->
<!-- Chrome "WebGPU Subgroups Features" origin trial token for https://gpuweb.github.io -->
<meta http-equiv="origin-trial" content="AiZbfNa6FSBMZg2Ak2xeb7upejmg3jb1Ll47edOTVs7fkZLvrV4jjPh7p4J7quB9Lx6Z7l0IDc97gpPKb4F6OQcAAABheyJvcmlnaW4iOiJodHRwczovL2dwdXdlYi5naXRodWIuaW86NDQzIiwiZmVhdHVyZSI6IldlYkdQVVN1Ymdyb3Vwc0ZlYXR1cmVzIiwiZXhwaXJ5IjoxNzM5OTIzMTk5fQ==">
<!-- Chrome "WebGPU Subgroups Features" origin trial token for http://localhost:8080 -->
<meta http-equiv="origin-trial" content="AkMLfHisU+Fsbpi9g6tfKSZF4ngpsmjW4Oai360fUvZE2rgSPZDWSWb8ryrliJX5HR/Rw0yig0ir9el2hrnODwcAAABaeyJvcmlnaW4iOiJodHRwOi8vbG9jYWxob3N0OjgwODAiLCJmZWF0dXJlIjoiV2ViR1BVU3ViZ3JvdXBzRmVhdHVyZXMiLCJleHBpcnkiOjE3Mzk5MjMxOTl9">
<link rel="stylesheet" href="third_party/normalize.min.css" />
<script src="third_party/jquery/jquery-3.3.1.min.js"></script>
<style>
Expand Down

0 comments on commit 6c236a3

Please sign in to comment.