From ad022ba3f86f241561c85f4d8a74b815a07dd48c Mon Sep 17 00:00:00 2001 From: k8w Date: Sat, 26 Feb 2022 15:33:45 +0800 Subject: [PATCH] upload allow json --- examples/file-upload/backend/src/index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/file-upload/backend/src/index.ts b/examples/file-upload/backend/src/index.ts index 90af195..b209834 100644 --- a/examples/file-upload/backend/src/index.ts +++ b/examples/file-upload/backend/src/index.ts @@ -6,7 +6,8 @@ import { serviceProto } from "./shared/protocols/serviceProto"; // Create the Server const server = new HttpServer(serviceProto, { port: 3000, - cors: '*' + cors: '*', + json: true }); // Flow: Serve static files