Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Client Challenging redirecting to wrong port #683

Open
vinc3nz opened this issue Jul 14, 2024 · 0 comments
Open

Client Challenging redirecting to wrong port #683

vinc3nz opened this issue Jul 14, 2024 · 0 comments

Comments

@vinc3nz
Copy link

vinc3nz commented Jul 14, 2024

When using advancedClientChallenging like in the Readme file, the application redirects to localhost instead of localhost:3000.
Code to reproduce:

const express = require('express');
const umbress = require('umbress').default;

const app = express();

app.use(express.urlencoded({ extended: true }));

app.use(
  umbress({
    advancedClientChallenging: {
      enabled: true,
      cookieTtl: 30
    }
  })
);

app.get('/', (req, res) => {
  res.send('Hello World!')
});


app.listen(3000, () => {
    console.log("Server is running on port 3000")
});

Things used:
NodeJS v22.4.1 on Windows 10, using Memurai 4.1.1 as a redis compatible database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant