no-cors mode by default.

This commit is contained in:
FireMasterK 2021-02-05 19:42:20 +05:30
parent 34304f3662
commit 57d23de975
No known key found for this signature in database
GPG Key ID: 8DFF5DD33E93DB58

View File

@ -37,6 +37,9 @@ 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) const app = createApp(App)
app.use(router) app.use(router)
app.mixin(mixin) app.mixin(mixin)