I lost all css when i set cookies expire

57 views Asked by At

I lost all css when i set cookies expire = 0. My website still work fine when compile it in local. But when i deploy it to public server, all css can't loaded.

cookies.set("token", res.data.data.token, {
            expires: 0,
          });
          var decoded_token = jwt_decode(res.data.data.token);
          cookies.set("role", decoded_token.role, {
            expires: 0,
          });
          cookies.set("email", decoded_token.email, {
            expires: 0,
          });
0

There are 0 answers