@bexis2/bexis2-core-ui 0.4.56 → 0.4.57

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,11 +8,11 @@ const apiRequest = (method, url, request) => {
8
8
  const axiosAPI = axios.create({
9
9
  baseURL: host
10
10
  });
11
+ const requestVerificationToken = csrfToken;
11
12
  const headers = {
12
- authorization: 'Basic ' + btoa(username + ':' + password)
13
+ authorization: 'Basic ' + btoa(username + ':' + password),
14
+ __RequestVerificationToken: requestVerificationToken
13
15
  };
14
- const requestVerificationToken = csrfToken;
15
- headers['__RequestVerificationToken'] = requestVerificationToken;
16
16
  //using the axios instance to perform the request that received from each http method
17
17
  return axiosAPI({
18
18
  method,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bexis2/bexis2-core-ui",
3
- "version": "0.4.56",
3
+ "version": "0.4.57",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -12,15 +12,12 @@ const apiRequest = (method, url, request) => {
12
12
  baseURL: host
13
13
  });
14
14
 
15
+ const requestVerificationToken = csrfToken;
15
16
  const headers = {
16
- authorization: 'Basic ' + btoa(username + ':' + password)
17
+ authorization: 'Basic ' + btoa(username + ':' + password),
18
+ __RequestVerificationToken:requestVerificationToken
17
19
  };
18
20
 
19
- const requestVerificationToken = csrfToken;
20
-
21
- headers['__RequestVerificationToken'] = requestVerificationToken;
22
-
23
-
24
21
  //using the axios instance to perform the request that received from each http method
25
22
  return axiosAPI({
26
23
  method,