swa07016

504 error 해결

......@@ -24,7 +24,8 @@ const MealCard = (props) => {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'authorization': user
'authorization': user,
'Accept': 'application/json'
}
}).then(response => response.json())
.then(result => {
......
......@@ -34,7 +34,8 @@ const MealCard = (props) => {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'authorization': user
'authorization': user,
'Accept': 'application/json'
},
body: JSON.stringify({
"cardid":props.id
......
......@@ -13,7 +13,8 @@ const UserCards = (props) => {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'authorization': user
'authorization': user,
'Accept': 'application/json'
}
}).then(response => response.json())
......
......@@ -13,7 +13,8 @@ const MypickPage = () => {
method: 'GET',
headers: {
'Content-Type': 'application/json',
'authorization': user
'authorization': user,
'Accept': 'application/json'
}
}).then(response => response.json())
......
......@@ -12,7 +12,8 @@ const SigninPage = (props) => {
return fetch('/api/signin', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
'Content-Type': 'application/json',
'Accept': 'application/json'
},
body: JSON.stringify(user),
......
......@@ -29,7 +29,8 @@ const SigninPage = (props) => {
method: "POST",
body: JSON.stringify(signupInfo),
headers: {
"Content-Type": "application/json"
"Content-Type": "application/json",
'Accept': 'application/json'
}
};
......