Search code examples
aspnetboilerplate

Disable HTTP Interceptor in a certain page (angular)


I found the source code that intercepts HTTP requests and display the erros as intended, but I really don't want to change the source code of the Angular Module.

I really need to disable it in a single page. Is there a way to do so? Could somebody point me to a direction?

Thank you!

EXCEPTION

EDIT > I have found a workaround

https://github.com/aspnetboilerplate/abp-ng2-module/issues/3#issuecomment-336222390


Solution

  • You can disable for particular AJAX calls by adding abpHandleError: false into abp.ajax options.

    Related issue: https://github.com/aspnetboilerplate/aspnetboilerplate/issues/1301