From e654c63b58ef4bfa876db39d5f9e2f6c415dac23 Mon Sep 17 00:00:00 2001 From: powermaker450 Date: Mon, 9 Sep 2024 12:24:24 -0400 Subject: [PATCH] Add CORS headers --- src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types.ts b/src/types.ts index a5d0549..ca17130 100644 --- a/src/types.ts +++ b/src/types.ts @@ -11,7 +11,7 @@ const rating = number() ) .required(); -export const typeJson = { "Content-Type": "application/json" }; +export const typeJson = { "Access-Control-Allow-Origin": "*", "Content-Type": "application/json" }; export const userReviewSchema = object({ username: string().min(2).max(30).required(),