Is modifying form validators based on backend response secure in an enterprise-level cloud...

Discussão em 'Angular' iniciado por Neel, Dezembro 24, 2024.

  1. Neel

    Neel Guest

    I am working on an enterprise-level Cloud Full-Stack project, where I’m part of a team managing multiple table views. Each table has its own add/edit form, and certain form fields may be read-only based on user access permissions.

    Currently, we handle this by sending a request to the backend, which responds with access control information. Based on this response, we modify the validators for each form control (e.g., marking fields as read-only or requiring them).

    Is this approach secure? Specifically, is it safe to rely on client-side form validators being updated based on the backend response, or is there a more secure way to handle access control and form validation?

    The tech stack for this project is:

    • Spring Boot (Backend)
    • Angular (Frontend)
    • PostgreSQL (Database)

    Continue reading...

Compartilhe esta Página