diff --git a/quasar.config.js b/quasar.config.js index aed1662..1fe131a 100644 --- a/quasar.config.js +++ b/quasar.config.js @@ -84,6 +84,15 @@ module.exports = configure(function (/* ctx */) { // open: true, // opens browser window automatically port: 4000, strictport: true, + // This works around CORS problems when developing locally, using the Appwrite backend + proxy: { + '/api': { + target: 'https://apidev.bab.toal.ca/', + changeOrigin: true, + secure: false, + rewrite: (path) => path.replace(/^\/api/, ''), + }, + }, // For reverse-proxying via haproxy // hmr: { // clientPort: 443, diff --git a/src/components/task/TaskListComponent.vue b/src/components/task/TaskListComponent.vue index cd2aec9..5db3271 100644 --- a/src/components/task/TaskListComponent.vue +++ b/src/components/task/TaskListComponent.vue @@ -2,29 +2,29 @@