diff --git a/api/api/settings.py b/api/api/settings.py index a45b242..d64cd0f 100644 --- a/api/api/settings.py +++ b/api/api/settings.py @@ -130,7 +130,7 @@ CORS_ALLOWED_ORIGINS = [ "http://localhost:5173", ] -CORS_ALLOW_METHODS = ( +CORS_ALLOWED_METHODS = ( "DELETE", "GET", "OPTIONS", diff --git a/frontend/src/api/api.ts b/frontend/src/api/api.ts index f2aac81..132a881 100644 --- a/frontend/src/api/api.ts +++ b/frontend/src/api/api.ts @@ -1,7 +1,7 @@ import axios from 'axios' import type {MediaItemResponse} from '@/api/interfaces' -const BASE_URL = 'http://127.0.0.1:8000/api' +const BASE_URL = 'http://localhost:8000/api' function get(url: string): Promise { return axios.get(`${BASE_URL}${url}`) diff --git a/frontend/src/components/Toggle.vue b/frontend/src/components/Toggle.vue index fdd6012..4c28a3f 100644 --- a/frontend/src/components/Toggle.vue +++ b/frontend/src/components/Toggle.vue @@ -19,7 +19,7 @@ const toggleOption = () => {