From e88a8570ba00c40bcb24832ba1bc05d8cb6b2273 Mon Sep 17 00:00:00 2001 From: Mani Chandra <84711804+ThisIsMani@users.noreply.github.com> Date: Wed, 27 Nov 2024 13:03:45 +0530 Subject: [PATCH] feat(authn): Enable cookies (#1810) --- config/config.toml | 2 +- src/hooks/AuthHooks.res | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.toml b/config/config.toml index 0a18fa679..33c9f0600 100644 --- a/config/config.toml +++ b/config/config.toml @@ -3,7 +3,7 @@ primary_color="#006DF9" primary_hover_color="#005ED6" sidebar_color="#242F48" [default.endpoints] -api_url="http://localhost:8080" +api_url="http://localhost:9000/api" sdk_url="http://localhost:9050/HyperLoader.js" logo_url="" favicon_url="" diff --git a/src/hooks/AuthHooks.res b/src/hooks/AuthHooks.res index e161e7c4f..cdf588964 100644 --- a/src/hooks/AuthHooks.res +++ b/src/hooks/AuthHooks.res @@ -98,7 +98,7 @@ let useApiFetcher = () => { Fetch.RequestInit.make( ~method_, ~body?, - ~credentials=Omit, // change to SameOrigin (enable cookies) after backend fixes are done for cookies + ~credentials=SameOrigin, ~headers=getHeaders(~headers, ~uri, ~contentType, ~token, ~xFeatureRoute), ), )