You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The HttpInterceptorService works fine with interceptors at the moment, the only downside is that all the interceptors are global and executed every time the an http request is done from the HttpInterceptorService
Proposed solution:
A way to provide interceptors and paths to intercept. So certain interceptors only apply to certain requests.
Proposed wildcards: ** to say anything after this is valid. (any number of url parts) * to state anything after this is valid until the next /. (only a single url part)
This way AuthenticationInterceptor would still be applied globally, but there would be an extra configuration for interceptors and paths.
CustomInterceptor would only intercept requests done to an endpoint that contains /jobs or /apps with anything after it since ** would be a wildcard to set anything after this is ok.
CustomInterceptor2 would only intercept /apps/ and anything after it, but notice the wildcard * to state that i only care that 1 path is between logs and audit.. hence it would intercept /logs/1/audit but it would not intercept /logs/1/check/audit .
The text was updated successfully, but these errors were encountered:
Feature Request
The
HttpInterceptorService
works fine with interceptors at the moment, the only downside is that all the interceptors are global and executed every time the anhttp
request is done from theHttpInterceptorService
Proposed solution:
A way to provide interceptors and paths to intercept. So certain interceptors only apply to certain requests.
Proposed wildcards:
**
to say anything after this is valid. (any number of url parts)*
to state anything after this is valid until the next/
. (only a single url part)Proposed Configuration:
This way
AuthenticationInterceptor
would still be applied globally, but there would be an extra configuration for interceptors and paths.CustomInterceptor
would only intercept requests done to an endpoint that contains/jobs
or/apps
with anything after it since**
would be a wildcard to setanything after this is ok
.CustomInterceptor2
would only intercept/apps/
and anything after it, but notice the wildcard*
to state that i only care that 1 path is betweenlogs
andaudit
.. hence it would intercept/logs/1/audit
but it would not intercept/logs/1/check/audit
.The text was updated successfully, but these errors were encountered: