@dnax/core 0.17.3 → 0.17.4

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.
package/app/hono.ts CHANGED
@@ -65,14 +65,17 @@ function HonoInstance(): typeof app {
65
65
  app.use(secureHeaders());
66
66
  app.use(
67
67
  cors({
68
- origin: Cfg.server?.cors?.origin || [],
69
- credentials: Cfg.server?.cors?.credentials || true,
68
+ origin: Cfg.server?.cors?.origin || "*",
69
+ credentials: Cfg.server?.cors?.credentials ?? false,
70
70
  allowMethods: Cfg.server?.cors?.allowMethods || [
71
71
  "GET",
72
72
  "POST",
73
73
  "PUT",
74
74
  "DELETE",
75
75
  "OPTIONS",
76
+ "PATCH",
77
+ "HEAD",
78
+ "CONNECT",
76
79
  ],
77
80
  allowHeaders: Cfg.server?.cors?.allowHeaders || [
78
81
  "Tenant-Id",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.17.3",
3
+ "version": "0.17.4",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
package/types/index.ts CHANGED
@@ -379,7 +379,8 @@ export type Config = {
379
379
  origin:
380
380
  | string[]
381
381
  | ((ctx: { origin: string; c: Context }) => string[])
382
- | string;
382
+ | string
383
+ | "*";
383
384
  /**
384
385
  * default true
385
386
  @default true