From a5e0f827719eaee95148f595e33369fa572296eb Mon Sep 17 00:00:00 2001 From: Piotr Oleszczyk Date: Wed, 18 Jun 2025 15:25:01 +0200 Subject: [PATCH] Revert "fix CORS" This reverts commit 780c4999134748e103bcde5775775dee7e7bfb5e. --- app.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/app.py b/app.py index 557af31..8fc242e 100644 --- a/app.py +++ b/app.py @@ -10,7 +10,6 @@ from brother_ql.backends.helpers import send from brother_ql.conversion import convert from brother_ql.raster import BrotherQLRaster from fastapi import FastAPI, HTTPException -from fastapi.middleware.cors import CORSMiddleware from PIL import Image, ImageOps from pydantic import BaseModel, Field from pylibdmtx.pylibdmtx import encode @@ -20,13 +19,6 @@ if not hasattr(Image, "ANTIALIAS"): app = FastAPI(title="QL-1060N Stacked Barcode Printer") -app.add_middleware( - CORSMiddleware, - allow_origins=["https://grocy-zyczliwa.oleszczyk.eu"], - allow_methods=["POST"], - allow_headers=["*"], -) - @lru_cache(maxsize=256) def make_code128(data: str) -> Image.Image: