Skip to content

Commit

Permalink
Feat: handle CORS error (#105)
Browse files Browse the repository at this point in the history
* integrated business Service State

* handled CORS error

---------

Co-authored-by: rachana-egov <[email protected]>
  • Loading branch information
rachana-egov and rachana-egov committed Aug 16, 2023
1 parent 897d6e0 commit 9e2b0cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,5 @@
"@hookform/devtools": "^4.3.1",
"@tanstack/eslint-plugin-query": "^4.32.5",
"gh-pages": "^5.0.0"
},
"proxy": "https://qa.digit.org"
}
}
2 changes: 1 addition & 1 deletion src/axios.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from "axios";

const instance = axios.create({
baseURL: "/egov-workflow-v2", // Base URL of the API
baseURL: "https://thingproxy.freeboard.io/fetch/https://qa.digit.org/egov-workflow-v2", // Base URL of the API
headers: {
"Content-Type": "application/json;charset=UTF-8",
Accept: "application/json, text/plain, */*",
Expand Down

0 comments on commit 9e2b0cb

Please sign in to comment.