X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=server%2Fconfig%2Fparameters.js.dist;h=5b4301a65f8629329531cd5e86a19289a9d44765;hb=dcd68c4108412f45b8ce119ae80ce8f6e296800b;hp=6f274dd3e2224e2afb0041e10bc3ba210927da85;hpb=625022fdcf750f0aff8fcd699f7e9b89730e1d10;p=vchess.git diff --git a/server/config/parameters.js.dist b/server/config/parameters.js.dist index 6f274dd3..5b4301a6 100644 --- a/server/config/parameters.js.dist +++ b/server/config/parameters.js.dist @@ -1,10 +1,16 @@ module.exports = { // For mail sending. NOTE: *no trailing slash* - siteURL: "http://localhost:3000", + siteURL: "http://localhost:8080", // To know in which environment the code run env: process.env.NODE_ENV || 'development', + + // CORS: cross-origin resource sharing options + cors: { + enable: true, + allowedOrigin: "http://localhost:8080", + }, // Lifespan of a (login) cookie cookieExpire: 183*24*60*60*1000, //6 months in milliseconds