Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

102
Visualizações
Ensure a user is not able to modify id in url

I'm working on a react/express application. The url look something like this: /dashboard?matchID=2252309 . As a user I should only be able to access this url. if I try to modify the matchid I should not be able to see the page. Is it a simple way to do this? One option is to create a endpoint and check through my database for access.

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

There is no way to restricted the user to enter some URL based on your database. To match your expectation you have two available solutions :

Solution A : Check the user's authorization server-side with a web token and restrict the access to the requested ressource. You will have to implement a login and a permission system.

Solution B : Hide your real ressource ID in a web token (JWT) to make a complicated non-deterministic / non-guessable public Id / URL. Anyone who have the exact URL would have access to the requested ressource.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda