add access control

This commit is contained in:
Hepatica
2023-12-02 06:14:06 +01:00
parent cd93db0d22
commit 98a39ee763

View File

@@ -27,11 +27,11 @@ export async function GetCurrentMoney(authToken, searchToken) {
try { try {
const response = await fetch(`${BackendApiUrl}/Payment/GetCurrentMoney`, { const response = await fetch(`${BackendApiUrl}/Payment/GetCurrentMoney`, {
method: 'GET', method: 'GET',
redirect: 'follow', redirect: 'follow',
headers: { headers: {
'AUTHTOKEN': authToken, 'AUTHTOKEN': authToken,
'SearchToken': searchToken 'SearchToken': searchToken,
'Access-Control-Allow-Origin': '*'
} }
}); });