★ ★ Admin Section (Broken Access Control)

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024

Комментарии • 8

  • @kylehill4437
    @kylehill4437 Год назад

    DUDE!! You are the best! Love your video! Clear and excellent explanation

  • @trdngy8230
    @trdngy8230 2 года назад

    I clone the project directly from the github repository and started it locally. I also figured it out that the admin page is located at #/administration. But when accessing to this endpoint, I got: 403 You are not allowed to access this page.
    I think this is a correct behavior of this app because I can see that this path is already gaurded
    ` path: 'administration',
    component: AdministrationComponent,
    canActivate: [AdminGuard]
    `
    Then, how is it possible that I can solve the challenge?

    • @odawgpog
      @odawgpog 5 месяцев назад

      were you able to solve it? I am getting stuck at the same place.

  • @mohammadbilal2535
    @mohammadbilal2535 3 года назад

    do we have to be logged in as admin to access administration page?

    • @Hacksplained
      @Hacksplained  3 года назад +1

      Try it out 😅 just navigate to the page once logged in as admin and once without being logged in

    • @mohammadbilal2535
      @mohammadbilal2535 3 года назад

      @@Hacksplained I haven't solved login as admin challenge yet! I guess I have to solve that first . Thanks for replying 🙂

    • @Hacksplained
      @Hacksplained  3 года назад

      @@mohammadbilal2535 good luck with solving the other challenge first 😇

    • @mohammadbilal2535
      @mohammadbilal2535 3 года назад

      @@Hacksplained solved it already btw thanks👍