diff --git a/client/src/utils/CleanAxios.js b/client/src/utils/CleanAxios.js index 0ddc62be6..19b71e969 100644 --- a/client/src/utils/CleanAxios.js +++ b/client/src/utils/CleanAxios.js @@ -6,8 +6,6 @@ if (process.env.NODE_ENV === "production") { process.env.REACT_APP_AXIOS_BASE_API_URL || "https://api.imex.online/"; } -axios.defaults.withCredentials = true; - export const axiosAuthInterceptorId = axios.interceptors.request.use( async (config) => { if (!config.headers.Authorization) { diff --git a/server.js b/server.js index d3b809531..952d1cc67 100644 --- a/server.js +++ b/server.js @@ -36,7 +36,6 @@ const io = new Server(server, { "https://www.imex.online", ], methods: ["GET", "POST"], - credentials: true, }, }); exports.io = io; @@ -49,7 +48,7 @@ app.use(bodyParser.json({ limit: "50mb" })); app.use(bodyParser.urlencoded({ limit: "50mb", extended: true })); //app.use(enforce.HTTPS({ trustProtoHeader: true })); app.use( - cors({ credentials: true }) + cors() // cors({ // credentials: true, // origin: [