diff --git a/crates/backend/src/main.rs b/crates/backend/src/main.rs index dab6a2b..99685ba 100644 --- a/crates/backend/src/main.rs +++ b/crates/backend/src/main.rs @@ -39,7 +39,7 @@ async fn main() -> std::io::Result<()> { let cors = if cfg!(debug_assertions) { actix_cors::Cors::permissive() } else { - actix_cors::Cors::default() + actix_cors::Cors::permissive() //change to default on push }; App::new() .wrap(cors) diff --git a/docs/SETUP.md b/docs/SETUP.md index f5f3c23..b013ba3 100644 --- a/docs/SETUP.md +++ b/docs/SETUP.md @@ -43,7 +43,7 @@ docker image remove apfelnetzwerk-backend docker ps ``` -3. attach a shell to the running postgres docker container +3. attach a shell to the running backend docker container ```bash docker exec -it /bin/bash ``` diff --git a/web/src/client.ts b/web/src/client.ts index 76d122a..b968d41 100644 --- a/web/src/client.ts +++ b/web/src/client.ts @@ -1,11 +1,9 @@ import axios from "axios"; -import { store } from "@/store"; let axiosInstance = axios.create({ baseURL: import.meta.env.VITE_BACKEND_URL, }); axiosInstance.interceptors.request.use((config) => { - config.headers.Authorization = `Bearer ${store.token}`; return config; }); -export { axiosInstance }; +export { axiosInstance }; \ No newline at end of file diff --git a/web/src/components/HeaderBar.vue b/web/src/components/HeaderBar.vue index 263f498..8e856ed 100644 --- a/web/src/components/HeaderBar.vue +++ b/web/src/components/HeaderBar.vue @@ -3,29 +3,9 @@ - -
- -