From 1b4cec53f56156a8cd4648a37f8788806848b600 Mon Sep 17 00:00:00 2001 From: zjt <937178071@qq.com> Date: Mon, 18 Dec 2023 10:06:41 +0800 Subject: [PATCH] cros --- backend.py | 1 + 1 file changed, 1 insertion(+) diff --git a/backend.py b/backend.py index d4fb28c..01ba3e2 100644 --- a/backend.py +++ b/backend.py @@ -51,6 +51,7 @@ def index(): np.save("array.npy", image_embedding) response = Response(byte_io, mimetype="application/octet-stream") response.headers["Content-Length"] = 4194432 + response.headers["Access-Control-Allow-Origin"] = "*" return response else: return 'Content-Type not supported!'