title: Post request works on my local computer, but doesn't work on remote server
body: <p>On my computer, I have nodejs 10.13.0 and on my server I run ubuntu v10.22.1. I use express js for the server.
  I have many endpoints (PUT,POST,GET) on both. So I develop it on my windows computer and I push to the Linux server. All the endpoints work as expected on both machines, but for some reason, this endpoint doesn't work on the ubuntu server. It returns 403. The exact same code works well on windows. Have you ever faced such? I use postman in both cases.</p>
  <pre><code>router.post('/refresh-token', (req, res, next) =&gt; {
  let refreshToken = req.cookies.jwt_refresh
  let authorization = req.headers.authorization_refresh
  
  try {
      if (refreshToken) {
          req.user = jwt.verify(refreshToken, config.REFRESH_TOKEN_SECRET)
      } else if (authorization) {
          req.user = jwt.verify(authorization, config.REFRESH_TOKEN_SECRET)
      } else {
          res.status(403);
          res.send()
      }
  } catch (error) {
      res.status(403);
      res.send({error: error.message, success: false})
  }
  
  Tokens.findOne({
      where: {user_id: req.user.id, client_id: req.user.client}
  }).then(token =&gt; {
      if (token) {
          let refreshToken = token.refresh_token
          try {
              jwt.verify(refreshToken, config.REFRESH_TOKEN_SECRET)
  
              let newToken = generateAccessToken(req.user.username, token.user_id, req.user.client)
              let newRefreshToken = generateRefreshToken(req.user.username, token.user_id, req.user.client)
  
              res.cookie(&quot;jwt&quot;, newToken, {secure: true, httpOnly: true})
              res.cookie(&quot;jwt_refresh&quot;, newRefreshToken, {secure: true, httpOnly: true})
              res.send({
                  success: true,
                  error: null,
                  result: {
                      access_token: newToken, refresh_token: newRefreshToken
                  }
              })
          } catch (error) {
              console.error(&quot;refresh token error&quot;, error)
              res.status(403);
              res.send({error: {message: &quot;refresh token error, please log in&quot;}, success: false})
          }
      }
  }).catch(error =&gt; handleError(error, {}, res, next, statusCode = 403))
  </code></pre>
  <p>})</p>