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 b5b1f6b commit 733fea3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
build:
context: .
dockerfile: ./docker/api/Dockerfile
image: lmcyber/stud_camp_backend:0.4
image: lmcyber/stud_camp_backend:0.5

ports:
- 8080:8080
Expand All @@ -16,7 +16,7 @@ services:
build:
context: .
dockerfile: ./docker/nginx/Dockerfile
image: lmcyber/stud_camp_nginx:0.4
image: lmcyber/stud_camp_nginx:0.5

ports:
- 80:80
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/API/Fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export default async function Fetch({ action, method, body }) {

if (method === HttpMethod.GET) {
data = await fetch(url, {
mode: "no-cors",
method: "GET",
credentials: "no-cors",
headers: headers,
})
.then((response) => response.json())
Expand All @@ -28,7 +28,7 @@ export default async function Fetch({ action, method, body }) {
} else {
data = await fetch(url, {
method: method,
credentials: "no-cors",
mode: "no-cors",
headers: headers,
body: body ? JSON.stringify(body) : ""
})
Expand Down

0 comments on commit 733fea3

Please sign in to comment.