From f9b5e0aa63eb097c01e2c0948f9970e290e81d5a Mon Sep 17 00:00:00 2001 From: FireMasterK <20838718+FireMasterK@users.noreply.github.com> Date: Fri, 5 Feb 2021 19:42:20 +0530 Subject: [PATCH] Revert "`no-cors` mode by default." This reverts commit 57d23de97531d5917357849721562830baed1cde. --- src/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main.js b/src/main.js index 29bce406..ce727322 100644 --- a/src/main.js +++ b/src/main.js @@ -37,9 +37,6 @@ const mixin = { } } -var fetchFn = window.fetch; -window.fetch = function (url, config) { if (!config) { config = {} } if (!config.mode) { config.mode = 'no-cors' } return fetchFn(url, config) } - const app = createApp(App) app.use(router) app.mixin(mixin)