File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,22 @@ module.exports = config => {
81
81
autoWatch : true ,
82
82
83
83
browsers : [ "ChromeHeadless" ] ,
84
- singleRun : true
84
+ singleRun : true ,
85
+
86
+
87
+ // Allow SharedArrayBuffer: see https://web.dev/cross-origin-isolation-guide/
88
+ customHeaders : [
89
+ {
90
+ match : ".*" ,
91
+ name : "Cross-Origin-Opener-Policy" ,
92
+ value : "same-origin"
93
+ } ,
94
+ {
95
+ match : ".*" ,
96
+ name : "Cross-Origin-Embedder-Policy" ,
97
+ value : "require-corp"
98
+ }
99
+ ]
85
100
} ;
86
101
87
102
config . set ( options ) ;
Original file line number Diff line number Diff line change @@ -52,7 +52,21 @@ module.exports = config => {
52
52
autoWatch : true ,
53
53
54
54
browsers : [ "ChromeHeadless" ] ,
55
- singleRun : true
55
+ singleRun : true ,
56
+
57
+ // Allow SharedArrayBuffer: see https://web.dev/cross-origin-isolation-guide/
58
+ customHeaders : [
59
+ {
60
+ match : ".*" ,
61
+ name : "Cross-Origin-Opener-Policy" ,
62
+ value : "same-origin"
63
+ } ,
64
+ {
65
+ match : ".*" ,
66
+ name : "Cross-Origin-Embedder-Policy" ,
67
+ value : "require-corp"
68
+ }
69
+ ]
56
70
} ;
57
71
58
72
config . set ( options ) ;
You can’t perform that action at this time.
0 commit comments