@kumori/aurora-backend-handler 1.1.27 → 1.1.29

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.
@@ -76,10 +76,10 @@ export const deployMarketplaceItem = async (item: MarketplaceService) => {
76
76
  url.searchParams.append("wait", "30000");
77
77
  url.searchParams.append("validate", "true");
78
78
  url.searchParams.append("dsl", "true");
79
-
80
79
  const response = await fetch(url.toString(), {
81
80
  method: "POST",
82
81
  body: formData,
82
+ credentials: "include",
83
83
  });
84
84
 
85
85
  if (!response.ok) {
@@ -367,6 +367,7 @@ export const deployMarketplaceItem = async (item: MarketplaceService) => {
367
367
  "Content-Type": "application/json",
368
368
  },
369
369
  body: JSON.stringify(itemBody),
370
+ credentials: "include",
370
371
  });
371
372
 
372
373
  if (!response.ok) {
@@ -40,6 +40,7 @@ export const deployService = async (data: Service, token: string) => {
40
40
  const response = await fetch(url.toString(), {
41
41
  method: "POST",
42
42
  body: formData,
43
+ credentials: "include",
43
44
  });
44
45
  if (!response.ok) {
45
46
  throw new Error(`HTTP error! status: ${response.status}`);
@@ -66,6 +67,7 @@ export const deployService = async (data: Service, token: string) => {
66
67
  const response = await fetch(url.toString(), {
67
68
  method: "POST",
68
69
  body: formData,
70
+ credentials: "include",
69
71
  });
70
72
  if (!response.ok) {
71
73
  const jsonResponse = await response.json();
@@ -121,6 +123,7 @@ export const redeployService = async (data: Service) => {
121
123
  const response = await fetch(url.toString(), {
122
124
  method: "POST",
123
125
  body: formData,
126
+ credentials: "include",
124
127
  });
125
128
 
126
129
  if (!response.ok) {
@@ -447,6 +450,7 @@ export const updateService = async (
447
450
  const response = await fetch(url.toString(), {
448
451
  method: "POST",
449
452
  body: formData,
453
+ credentials: "include",
450
454
  });
451
455
  if (!response.ok) {
452
456
  throw new Error(`HTTP error! status: ${response.status}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumori/aurora-backend-handler",
3
- "version": "1.1.27",
3
+ "version": "1.1.29",
4
4
  "description": "backend handler",
5
5
  "main": "backend-handler.ts",
6
6
  "scripts": {
@@ -264,8 +264,9 @@ export const initializeGlobalWebSocketClient = async (
264
264
  if (typeof window === "undefined") {
265
265
  wsConnection = new WebSocketClass(wsUrl, {
266
266
  headers: {
267
- authorization: `Bearer ${token}`,
267
+ // authorization: `Bearer ${token}`,
268
268
  },
269
+ credentials: "include",
269
270
  });
270
271
  } else {
271
272
  wsConnection = new WebSocketClass(wsUrl);