@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.
- package/express/custom_cors.js +3 -1
- package/package.json +1 -1
package/express/custom_cors.js
CHANGED
|
@@ -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 ??
|