Skip to content

Commit e3592b6

Browse files
authored
fix: cors preflight skip test
1 parent ea3f53b commit e3592b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('basicAuth skipCorsPreflight', () => {
7171
method: 'OPTIONS',
7272
headers: {
7373
Origin: 'foreignhost',
74-
'Cross-Origin-Request-Method': 'GET',
74+
'Access-Control-Request-Method': 'GET',
7575
},
7676
})
7777
it('no bypass by default', async () => {

0 commit comments

Comments
 (0)