Browse Source

Fix wrong domain on cookie set

ghorsington 5 năm trước cách đây
mục cha
commit
418e2ce81c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 });