@certik/serverless-api 1.0.8 → 1.0.9

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/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.0.9
2
+
3
+ - fixed CORS
4
+
1
5
  # 1.0.8
2
6
 
3
7
  - fixed CORS
package/lib/cors.js CHANGED
@@ -3,7 +3,7 @@ export function corsPreflight(name, path) {
3
3
  name,
4
4
  path,
5
5
  method: "OPTIONS",
6
- timeout: 10,
6
+ timeout: 30,
7
7
  memorySize: 128,
8
8
  handler: async () => {
9
9
  return {
@@ -11,11 +11,9 @@ export function corsPreflight(name, path) {
11
11
  statusCode: 200,
12
12
  headers: {
13
13
  "Access-Control-Allow-Origin": "*",
14
- "Access-Control-Allow-Credentials": "true",
15
14
  "Access-Control-Allow-Methods":
16
15
  "GET, POST, OPTIONS, PUT, PATCH, DELETE",
17
- "Access-Control-Allow-Headers":
18
- "Origin, X-Requested-With, Content-Type, Accept, Authorization",
16
+ "Access-Control-Allow-Headers": "*",
19
17
  },
20
18
  };
21
19
  },
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "author": "CertiK Engineering",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
- "version": "1.0.8",
7
+ "version": "1.0.9",
8
8
  "scripts": {
9
9
  "start": "doppler run -- nodemon start-dev.js",
10
10
  "lint": "eslint lib test routes *.js",