diff --git a/.github/workflows/build-deploy-frontend.yml b/.github/workflows/build-deploy-frontend.yml index 9cdcb143..4cc923b0 100644 --- a/.github/workflows/build-deploy-frontend.yml +++ b/.github/workflows/build-deploy-frontend.yml @@ -25,7 +25,7 @@ jobs: - name: Install NPM packages run: npm ci - name: Build project - run: VITE_API_URL=https://reportvision-ocr-api-dev.azurewebsites.net/ npm run build + run: VITE_API_URL='https://reportvision-ocr-api-dev.azurewebsites.net/' npm run build - name: Run unit tests run: npm run test - name: Create client build archive diff --git a/OCR/ocr/api.py b/OCR/ocr/api.py index e377caed..9a10e173 100644 --- a/OCR/ocr/api.py +++ b/OCR/ocr/api.py @@ -15,6 +15,7 @@ origins = [ "http://localhost:8000", # Allow requests from this origin "http://localhost:5173", # Add your front-end domain here + "*", ] app.add_middleware(