subdomain setup react -- 2
$30-250 USD
Paid on delivery
im creating mern app which requires dynamic unlimited subdomains like [login to view URL] for this if write any thing before localhost it gives me error invalid host header.
To achieve this, I have added the line
DANGEROUSLY_DISABLE_HOST_CHECK=true
in my .env file. which is not a good idea.
When a user logs in at localhost:3000, cookies are created and the user is authenticated. If the user is registered with a specific company, they should be redirected to [login to view URL] while remaining logged in. However, upon redirecting to the subdomain, all cookies that were created on localhost are lost and the user is redirected to the login page again. I expected the cookies to persist on the subdomain and enable the user to remain logged in. Can someone please assist me with this issue?
Project ID: #36274284
About the project
6 freelancers are bidding on average $136 for this job
Hello, I have encountered similar problems on past projects and I'm happy to work with you on this one. To solve this issue, we need to modify the domain and path of the cookie so that it can be accessed by pages on t More
Hii there. I have worked on mern as my full time opportunities. As i am the professional one. I will complete your task in your budgets and on time. Trust me and moves one step . You will feel so excited. Thank you.