Fix cookie domain

This commit is contained in:
Mikołaj Pich 2018-02-25 19:13:48 +01:00
parent e236e252c3
commit 7aeca892d8

View file

@ -17,7 +17,7 @@ router.get("/Default/123456/", (req, res) => {
router.get("/Default/123456/Start/Index/", (req, res) => {
res.cookie("EfebSsoAuthCookie", "asdfasdfasdfasdfasdfasdfas", {
domain: req.get('host').replace("uonetplus-opiekun", "uonetplus"),
domain: req.get('host').replace("uonetplus-opiekun", ""),
path: '/',
httpOnly: true
});