From 310aac44741b3885fce08b79a6f3d4b87f2691c5 Mon Sep 17 00:00:00 2001 From: Phill Pover Date: Sun, 6 Apr 2025 19:01:37 +0100 Subject: [PATCH] Allowing localhost --- .gitea/workflows/workflow.yaml | 2 ++ backend/src/main.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/workflow.yaml b/.gitea/workflows/workflow.yaml index eaf0138..07c5c66 100644 --- a/.gitea/workflows/workflow.yaml +++ b/.gitea/workflows/workflow.yaml @@ -91,3 +91,5 @@ jobs: run: docker compose pull music-collection-frontend music-collection-backend - name: Start containers run: docker compose up -d music-collection-frontend music-collection-backend + - name: Prune + run: docker system prune -af diff --git a/backend/src/main.ts b/backend/src/main.ts index 48f4521..b7ed1eb 100644 --- a/backend/src/main.ts +++ b/backend/src/main.ts @@ -4,7 +4,7 @@ import { AppModule } from './app.module'; async function bootstrap() { const app = await NestFactory.create(AppModule); app.enableCors({ - origin: ['https://music.anatid.net'], + origin: ['https://music.anatid.net','http://localhost:3000/'], methods: 'GET,HEAD,PUT,PATCH,POST,DELETE', credentials: true, allowedHeaders: 'X-Requested-With, X-HTTP-Method-Override, Content-Type, Accept, Observe',