@dnax/core 0.7.0 → 0.7.1

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
@@ -111,6 +111,23 @@ function HonoInstance(): typeof app {
111
111
  cors({
112
112
  origin: Cfg.server?.cors?.origin || [],
113
113
  credentials: Cfg.server?.cors?.credentials || true,
114
+ allowMethods: Cfg.server?.cors?.allowMethods || [
115
+ "GET",
116
+ "POST",
117
+ "PUT",
118
+ "DELETE",
119
+ "OPTIONS",
120
+ ],
121
+ allowHeaders: Cfg.server?.cors?.allowHeaders || [
122
+ "Tenant-Id",
123
+ "Content-Type",
124
+ "Authorization",
125
+ "Accept",
126
+ "Origin",
127
+ "X-Requested-With",
128
+ "Access-Control-Request-Method",
129
+ "Access-Control-Request-Headers",
130
+ ],
114
131
  })
115
132
  );
116
133
  //eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyIjoibm9tIiwiaWF0IjoxNzE3Nzc0MDQzLCJleHAiOjE3MTc3NzQxMDN9.Ud4-0y8pa4SMIcSn8PU1A-sjC-hT4ZVe_u3AdChyIJU
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.7.0",
3
+ "version": "0.7.1",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
package/types/index.ts CHANGED
@@ -358,6 +358,8 @@ export type Config = {
358
358
  cors?: {
359
359
  origin: string[];
360
360
  credentials?: boolean;
361
+ allowMethods?: Array<string>;
362
+ allowHeaders?: Array<string>;
361
363
  };
362
364
  socket?: {
363
365
  /**