spiceflow 1.10.0 → 1.10.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/dist/cors.js +1 -1
- package/package.json +1 -1
- package/src/cors.ts +2 -2
package/dist/cors.js
CHANGED
package/package.json
CHANGED
package/src/cors.ts
CHANGED
|
@@ -18,7 +18,7 @@ type CORSOptions = {
|
|
|
18
18
|
exposeHeaders?: string[] | boolean
|
|
19
19
|
/** Configures browser and CDN caching duration for CORS preflight requests in seconds. Set to 0 to disable. */
|
|
20
20
|
cacheAge?: number
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export const cors = (options?: CORSOptions): MiddlewareHandler => {
|
|
@@ -27,7 +27,7 @@ export const cors = (options?: CORSOptions): MiddlewareHandler => {
|
|
|
27
27
|
allowMethods: ['GET', 'HEAD', 'PUT', 'POST', 'DELETE', 'PATCH'],
|
|
28
28
|
allowHeaders: [],
|
|
29
29
|
credentials: true,
|
|
30
|
-
exposeHeaders:
|
|
30
|
+
exposeHeaders: [],
|
|
31
31
|
cacheAge: 21600, // 6 hours default
|
|
32
32
|
}
|
|
33
33
|
const opts = {
|