@rpcbase/server 0.237.0 → 0.238.0

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.
@@ -57,7 +57,9 @@ const custom_cors = (app) => {
57
57
  const cors_middleware = cors({
58
58
  origin: cors_origins,
59
59
  methods: ["GET", "POST"],
60
- credentials: true // IMPORTANT: required to enable set-cookie
60
+ credentials: true, // IMPORTANT: required to enable set-cookie
61
+ preflightContinue: false,
62
+ maxAge: 3600, // 1h, (TODO: set to 24h in prod when stable)
61
63
  })
62
64
 
63
65
  // TODO: can this be removed ??
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rpcbase/server",
3
- "version": "0.237.0",
3
+ "version": "0.238.0",
4
4
  "license": "SSPL-1.0",
5
5
  "main": "./index.js",
6
6
  "bin": {