Ends in:
2 DAYS
16 HRS
52 MIN
23 SEC
Ends in:
2 D
16 H
52 M
23 S
Open Closed

HOW TO REPLACE 403 ERROR PAGE IN ANGULAR #4228


User avatar
0
shijo created
  • ABP Framework version: v6.0.2
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): Seperated Angular
  • Exception message and stack trace:
  • Steps to reproduce the issue:" how to replace this page ?


1 Answer(s)
  • User Avatar
    0
    fatih.kilic created

    You can import ThemeSharedModule like below. Will use YourErrorComponent for describe in** forWhichErrors** array.

        ThemeSharedModule.forRoot({
          httpErrorConfig: {
            errorScreen: {
              component: YourErrorComponent,
              forWhichErrors: [401, 403, 404, 500],
              hideCloseIcon: true,
            },
          },
    
Made with ❤️ on ABP v9.1.0-preview. Updated on December 02, 2024, 12:35