diff --git a/lib/api/src/modules/refs.ts b/lib/api/src/modules/refs.ts index 559367aa64c8..efa66cd33bf1 100644 --- a/lib/api/src/modules/refs.ts +++ b/lib/api/src/modules/refs.ts @@ -154,7 +154,7 @@ export const init: ModuleFn = ({ store, provider, fullAPI }, { runCheck = true } credentials: 'omit', }), fetch(`${url}/iframe.html${query}`, { - cors: 'no-cors', + mode: 'no-cors', credentials: 'omit', }), ]); diff --git a/lib/api/src/tests/refs.test.js b/lib/api/src/tests/refs.test.js index 411bcf2c5610..2c1a817339ac 100644 --- a/lib/api/src/tests/refs.test.js +++ b/lib/api/src/tests/refs.test.js @@ -158,8 +158,8 @@ describe('Refs API', () => { Array [ "https://example.com/iframe.html", Object { - "cors": "no-cors", "credentials": "omit", + "mode": "no-cors", }, ], ] @@ -203,8 +203,8 @@ describe('Refs API', () => { Array [ "https://example.com/iframe.html?version=2.1.3-rc.2", Object { - "cors": "no-cors", "credentials": "omit", + "mode": "no-cors", }, ], ] @@ -265,8 +265,8 @@ describe('Refs API', () => { Array [ "https://example.com/iframe.html", Object { - "cors": "no-cors", "credentials": "omit", + "mode": "no-cors", }, ], ] @@ -355,8 +355,8 @@ describe('Refs API', () => { Array [ "https://example.com/iframe.html", Object { - "cors": "no-cors", "credentials": "omit", + "mode": "no-cors", }, ], Array [ @@ -448,8 +448,8 @@ describe('Refs API', () => { Array [ "https://example.com/iframe.html", Object { - "cors": "no-cors", "credentials": "omit", + "mode": "no-cors", }, ], Array [ @@ -542,8 +542,8 @@ describe('Refs API', () => { Array [ "https://example.com/iframe.html", Object { - "cors": "no-cors", "credentials": "omit", + "mode": "no-cors", }, ], Array [ @@ -640,8 +640,8 @@ describe('Refs API', () => { Array [ "https://example.com/iframe.html", Object { - "cors": "no-cors", "credentials": "omit", + "mode": "no-cors", }, ], ]