From 801216c51cf63f90d841f89c093ed943ab09d3f0 Mon Sep 17 00:00:00 2001 From: Michael Fatemi Date: Sat, 10 Apr 2021 15:23:01 -0400 Subject: [PATCH] add content-type header to Authenticator --- src/components/Authenticator.tsx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/Authenticator.tsx b/src/components/Authenticator.tsx index 2055dae..5a22f91 100644 --- a/src/components/Authenticator.tsx +++ b/src/components/Authenticator.tsx @@ -13,6 +13,9 @@ export default function Authenticator() { useEffect(() => { fetch(`${API_ENDPOINT}/create_session`, { method: 'POST', + headers: { + 'Content-Type': 'application/json', + }, body: JSON.stringify({ code, provider,