Procházet zdrojové kódy

Fix wrong domain on cookie set

ghorsington před 5 roky
rodič
revize
418e2ce81c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      controllers/appearanceController.js

+ 1 - 1
controllers/appearanceController.js

@@ -8,8 +8,8 @@ appearanceController.toggleDarkMode = async (req, res, next) => {
         cur = 'dark';
     else if(cur == 'dark')
         cur = 'light';
+
     res.cookie('appearance', cur, {
-        'domain': config.domain,
         'expires': new Date(253402300000000) 
     });
     return res.json({ currentStyle: cur });