Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
a.nasibullin committed Apr 17, 2024
1 parent 6213329 commit af2d52a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frontend/src/API/Fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export default async function Fetch({ action, method, body }) {
if (method === HttpMethod.GET) {
data = await fetch(url, {
method: "GET",
credentials: "same-origin",
headers: headers,
})
.then((response) => response.json())
Expand All @@ -27,6 +28,7 @@ export default async function Fetch({ action, method, body }) {
} else {
data = await fetch(url, {
method: method,
credentials: "same-origin",
headers: headers,
body: body ? JSON.stringify(body) : ""
})
Expand Down

0 comments on commit af2d52a

Please sign in to comment.