Localhost:3000 for ad b2c Unified sign up or sign in page for signup and signin user flow

2023-02-14T08:38:53.8166667+00:00

I am trying to implement a custom page for Azure AD b2c signup signin userflows using localhost:3000 ( Custom page URI ) using react. I am facing a few issues. i.e I am able to run the code locally and UI works perfectly fine but when i use localhost:3000 as the Custom page URI and i am facing 404 error and error in manifest row 1 and column 1.
I am not sure what is it that i am missing . Please let me know your valuable feedback

Windows for business | Windows Client for IT Pros | Directory services | Active Directory
Microsoft Security | Microsoft Entra | Microsoft Entra External ID
Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

1 answer

Sort by: Most helpful
  1. Limitless Technology 44,776 Reputation points
    2023-02-14T15:34:58.0366667+00:00
    
    Hello,
    
    Most likely because you don't have any route for handling http:// localhost : 3000/
    
    You have only static file handler which means this url would probably work http:// localhost: 3000 /index.html
    
    If you want to access your web at http:// localhost : 3000/ then add this
    
    app.get('/', function(req, res){
        res.sendFile(__dirname+'/bin/index.html'); // change the path to your index.html
    });
    
    --If the reply is helpful, please Upvote and Accept as answer--
    
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.