Skip to content

Commit f44f195

Browse files
committed
Block xhr by default
1 parent 33c5f1a commit f44f195

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ module.exports = launchOpts => {
3333

3434
const text = async (url, opts = {}) => {
3535
const {
36-
abortTypes = ['image', 'media', 'stylesheet', 'font'],
36+
abortTypes = ['image', 'media', 'stylesheet', 'font', 'xhr'],
3737
waitFor = 0,
3838
waitUntil = WAIT_UNTIL,
3939
...args
@@ -49,7 +49,7 @@ module.exports = launchOpts => {
4949

5050
const html = async (url, opts = {}) => {
5151
const {
52-
abortTypes = ['image', 'media', 'stylesheet', 'font'],
52+
abortTypes = ['image', 'media', 'stylesheet', 'font', 'xhr'],
5353
waitFor = 0,
5454
waitUntil = WAIT_UNTIL,
5555
...args

0 commit comments

Comments
 (0)