Merge branch 'laxman_dev' of http://10.10.1.3:2010/sipl/re-workflow-fe into laxman_dev
This commit is contained in:
commit
3076819953
@ -1537,11 +1537,12 @@ export function DealerClaimWorkflowTab({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
const baseUrl = import.meta.env.VITE_API_BASE_URL || 'http://localhost:5000/api/v1';
|
const baseUrl = import.meta.env.VITE_API_BASE_URL || '';
|
||||||
const response = await fetch(`${baseUrl}/dealer-claims/${requestId}/e-invoice/csv`, {
|
const response = await fetch(`${baseUrl}/dealer-claims/${requestId}/e-invoice/csv`, {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${TokenManager.getAccessToken()}`
|
'Authorization': `Bearer ${TokenManager.getAccessToken() || ''}`
|
||||||
}
|
},
|
||||||
|
credentials: 'include'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
@ -1582,11 +1583,12 @@ export function DealerClaimWorkflowTab({
|
|||||||
setShowInvoicePdfModal(true);
|
setShowInvoicePdfModal(true);
|
||||||
|
|
||||||
// Fetch PDF securely via Authorization header (not in URL query)
|
// Fetch PDF securely via Authorization header (not in URL query)
|
||||||
const baseUrl = import.meta.env.VITE_API_BASE_URL || 'http://localhost:5000/api/v1';
|
const baseUrl = import.meta.env.VITE_API_BASE_URL || '';
|
||||||
const response = await fetch(`${baseUrl}/dealer-claims/${requestId}/e-invoice/pdf`, {
|
const response = await fetch(`${baseUrl}/dealer-claims/${requestId}/e-invoice/pdf`, {
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${TokenManager.getAccessToken()}`
|
'Authorization': `Bearer ${TokenManager.getAccessToken() || ''}`
|
||||||
}
|
},
|
||||||
|
credentials: 'include'
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user