Skip to content

Commit

Permalink
Merge pull request #37 from ChainSafe/willem/fix-dev-server
Browse files Browse the repository at this point in the history
Fix dev server usage with WebWorkders
  • Loading branch information
willemolding authored Oct 9, 2024
2 parents f8d6049 + 904500d commit 33074f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .proxyrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = function (app) {
app.use((req, res, next) => {
res.setHeader("Cross-Origin-Opener-Policy", "same-origin");
res.setHeader("Cross-Origin-Embedder-Policy", "require-corp");
next();
});
};
2 changes: 1 addition & 1 deletion packages/demo-wallet/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<title>WebZjs Wallet Demo</title>
<!-- <script src="enable-threads.js"></script> -->
<script src="enable-threads.js"></script>
</head>
<body>
<div id="app"></div>
Expand Down

0 comments on commit 33074f2

Please sign in to comment.