From 9e2b0cb512de6561565d55633d5fc380432057e5 Mon Sep 17 00:00:00 2001 From: rachana-egov <137176770+rachana-egov@users.noreply.github.com> Date: Wed, 16 Aug 2023 14:27:36 +0530 Subject: [PATCH] Feat: handle CORS error (#105) * integrated business Service State * handled CORS error --------- Co-authored-by: rachana-egov --- package.json | 3 +-- src/axios.js | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 449e3a4e..ac4cf72f 100644 --- a/package.json +++ b/package.json @@ -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" + } } diff --git a/src/axios.js b/src/axios.js index 08af2628..d9107d6c 100644 --- a/src/axios.js +++ b/src/axios.js @@ -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, */*",