make that login & register work

This commit is contained in:
2024-03-02 09:39:34 +05:00
parent 892c14bd17
commit d7af20fb34
4 changed files with 43 additions and 17 deletions

View File

@@ -19,8 +19,9 @@ async function postData(url = '', data = {}) {
cache: 'no-cache',
credentials: 'same-origin',
headers: {
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest'
'Accept': 'application/json',
'Content-Type': 'application/json',
'X-Requested-With': 'XMLHttpRequest'
},
referrerPolicy: 'no-referrer',
body: JSON.stringify(data)