From 42fff789e3e9dc68b427979b4f6e47027cab2c93 Mon Sep 17 00:00:00 2001 From: Rafiafrzl Date: Mon, 29 Sep 2025 11:48:36 +0700 Subject: [PATCH] fix register request --- src/components/Global/RegisterRequest.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Global/RegisterRequest.jsx b/src/components/Global/RegisterRequest.jsx index 4bd767c..46deb42 100644 --- a/src/components/Global/RegisterRequest.jsx +++ b/src/components/Global/RegisterRequest.jsx @@ -2,7 +2,7 @@ import axios from 'axios'; const RegistrationRequest = async ({ method, prefix, params, headers = {} }) => { const baseURL = `${import.meta.env.VITE_API_SERVER}`; - + try { const response = await axios({ method: method, @@ -12,7 +12,7 @@ const RegistrationRequest = async ({ method, prefix, params, headers = {} }) => 'Accept-Language': 'en_US', ...headers, }, - withCredentials: true, + // withCredentials: true, }); return response.data || {}; @@ -22,4 +22,4 @@ const RegistrationRequest = async ({ method, prefix, params, headers = {} }) => } }; -export default RegistrationRequest; \ No newline at end of file +export default RegistrationRequest;