Skip to content

Commit

Permalink
rewrite origin-agent-cluster header as it causes a crash in AWP (#190)
Browse files Browse the repository at this point in the history
if set in the chrome extension, see webrecorder/archiveweb.page#194 and
https://issues.chromium.org/issues/351564775
bump version to 2.19.3
  • Loading branch information
ikreymer authored Jul 7, 2024
1 parent 458d6ec commit ea139ae
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/sw.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wombat.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/wombatWorkers.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@webrecorder/wabac",
"version": "2.19.2",
"version": "2.19.3",
"main": "index.js",
"type": "module",
"license": "AGPL-3.0-or-later",
Expand Down
3 changes: 3 additions & 0 deletions src/rewrite/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,9 @@ export class Rewriter {

"x-frame-options": "prefix",
"x-xss-protection": "prefix",

// this header may cause a crash in some version of Chrome if not rewritten
"origin-agent-cluster": "prefix",
};

const headerPrefix = "X-Archive-Orig-";
Expand Down

0 comments on commit ea139ae

Please sign in to comment.