@volcanicminds/backend 0.2.26 → 0.2.27
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/index.ts +13 -2
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -160,8 +160,19 @@ const start = async () => {
|
|
|
160
160
|
addPluginCors &&
|
|
161
161
|
(await fastify.register(cors, {
|
|
162
162
|
origin: '*',
|
|
163
|
-
|
|
164
|
-
|
|
163
|
+
methods: ['GET', 'POST', 'PUT', 'PATCH', 'DELETE', 'OPTIONS', 'HEAD'],
|
|
164
|
+
maxAge: 31536000,
|
|
165
|
+
credentials: true,
|
|
166
|
+
allowedHeaders: [
|
|
167
|
+
'Content-Type',
|
|
168
|
+
'Content-Length',
|
|
169
|
+
'Authorization',
|
|
170
|
+
'Origin',
|
|
171
|
+
'v-total',
|
|
172
|
+
'v-count',
|
|
173
|
+
'v-page',
|
|
174
|
+
'v-pageSize'
|
|
175
|
+
]
|
|
165
176
|
}))
|
|
166
177
|
addPluginCompress && (await fastify.register(compress))
|
|
167
178
|
|