added proxy updting case to avoid cors and be SSR
This commit is contained in:
+3
-2
@@ -348,7 +348,7 @@ export const createCase = (appealTypeId) => {
|
||||
console.log(config);
|
||||
return axios(config)
|
||||
.then((res) => {
|
||||
console.log("posted ", res.data);
|
||||
// console.log("posted ", res.data);
|
||||
return res.data;
|
||||
})
|
||||
.catch((error) => {
|
||||
@@ -361,7 +361,8 @@ export const updateCase = (incidentId, updateBody, updateFormCollection) => {
|
||||
|
||||
var config = {
|
||||
method: "patch",
|
||||
url: WEBAPI_URL + updateFormCollection + "(" + incidentId + ")",
|
||||
//url: WEBAPI_URL + updateFormCollection + "(" + incidentId + ")",
|
||||
url: "/api/proxy/" + updateFormCollection + "(" + incidentId + ")",
|
||||
headers: {
|
||||
"OData-MaxVersion": "4.0",
|
||||
"OData-Version": "4.0",
|
||||
|
||||
Reference in New Issue
Block a user