1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

Error: self-signed certificate || code: 'DEPTH_ZERO_SELF_SIGNED_CERT' || Angular 18 [duplicate]

Discussão em 'Angular' iniciado por Anand Sahani, Setembro 10, 2024.

  1. Anand Sahani

    Anand Sahani Guest

    When call a GET api from Angular 18 to .Net Core 8 Web API. First time Data Fetched but after reload that page a error occur. [cause]: Error: self-signed certificate && code: 'DEPTH_ZERO_SELF_SIGNED_CERT'.enter image description here

    export const appConfig: ApplicationConfig = {
    providers: [provideHttpClient(withFetch()),
    provideZoneChangeDetection({ eventCoalescing: true }),
    provideRouter(routes), provideClientHydration()
    ]
    };


    bindCategory() {
    debugger;
    this.categoryService.getCategories().subscribe({
    next: (response: ApiResult<CategoryMasterDTO>) => {
    this.categoryApiResult = response;
    },
    error: (err) => {
    console.error('Error fetching categories', err);
    this.categoryApiResult = { dataList: [], result: false, message: 'Error fetching categories' };
    }
    });
    }


    Call a GET API from angular 18 to .net core8 web api. there is error occor. [cause]: Error: self-signed certificate && code: 'DEPTH_ZERO_SELF_SIGNED_CERT'.

    Continue reading...

Compartilhe esta Página