title: Express/Node js api SameSite=None and Secure for cookies ,warning being shown when trying to access the api
body: <p>I have the following api created using express/node but when i try to access it from the browser &quot;Specify SameSite=None and Secure if the cookie should be sent in cross-site requests. This enables third-party use.&quot; this warning was shown in console and no data was retrieved ,the api is as follows</p>
  <pre><code>let express = require(&quot;express&quot;);
  let app = express();
  let bodyparser = require(&quot;body-parser&quot;)
  let jwt = require(&quot;jsonwebtoken&quot;);
  const student = require('./student')
  
  
  app.use(bodyparser.json)
  
  //used to authenticate the user and create the token
  app.get(&quot;/auth&quot;,(req,res)=&gt;{
      console.log(&quot;sdsdsds&quot;)
      var token = jwt.sign({email: user.email}, 'hubDemo', {expiresIn: '1h'});
      res.send({token})
  })
  
  //fetches the student data and returns 
  app.get(&quot;/student&quot;,(req,res)=&gt;{
      console.log(&quot;tst&quot;);
      return res.status(200).json({
          ok: true,
          data: student
      });
  });
  
  
  app.listen(3000,()=&gt;{console.log(&quot;listening&quot;)})
  </code></pre>
  <p>what should i change to make it work?</p>