Skip to content

Commit

Permalink
feat(authn): Enable cookies (#1810)
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsMani authored Nov 27, 2024
1 parent 08558e8 commit e88a857
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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=""
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/AuthHooks.res
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
)
Expand Down

0 comments on commit e88a857

Please sign in to comment.