Fix: Add header in every API call.
" 'X-Login-Type': 'IB',"
This commit is contained in:
@@ -127,6 +127,7 @@ export default function MandatePage() {
|
||||
method: "GET",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'X-Login-Type': 'emandate',
|
||||
Authorization: `Bearer ${token}`,
|
||||
},
|
||||
});
|
||||
@@ -181,6 +182,7 @@ export default function MandatePage() {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'X-Login-Type': 'emandate',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
mobileNumber: localStorage.getItem("userMobNo"),
|
||||
@@ -218,7 +220,7 @@ export default function MandatePage() {
|
||||
try {
|
||||
const response = await fetch("/api/otp/send", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
headers: { "Content-Type": "application/json",'X-Login-Type': 'emandate' },
|
||||
body: JSON.stringify({
|
||||
mobileNumber: localStorage.getItem("userMobNo"),
|
||||
type: "EMandate",
|
||||
@@ -262,6 +264,7 @@ export default function MandatePage() {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
'X-Login-Type': 'emandate',
|
||||
},
|
||||
body: JSON.stringify({
|
||||
otp: otp,
|
||||
|
||||
Reference in New Issue
Block a user