Skip to content

Commit

Permalink
Credentials same-origin
Browse files Browse the repository at this point in the history
  • Loading branch information
hide-on-bush-x committed Sep 2, 2022
1 parent fe65573 commit 313e3a8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/common/helpers/rest-calls/index.ts
Expand Up @@ -112,7 +112,7 @@ export const useMasaQuery = (
...headers,
Authorization: token ? `Bearer ${token}` : undefined,
},
credentials: "include",
credentials: "same-origin",
method: metadata.method,
mode: 'cors',
body: JSON.stringify(body),
Expand Down Expand Up @@ -172,6 +172,7 @@ export const useMasaMutation = (
Authorization: token ? `Bearer ${token}` : undefined,
'Content-Type': 'application/json',
},
credentials: "same-origin",
method: metadata.method,
mode: 'cors',
body: JSON.stringify(newBody ? newBody : body),
Expand Down

0 comments on commit 313e3a8

Please sign in to comment.