Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(*): refactor to set the configs files not dependent from any ht… #1387

Merged
merged 1 commit into from
Sep 15, 2023

Conversation

pelord
Copy link
Member

@pelord pelord commented Sep 15, 2023

Please check if the PR fulfills these requirements

What is the current behavior? (You can also link to an open issue here)
Config file was dependent from Httpclient.
The fact is: Httpclient must instanciate Http_Interceptor .
But our AuthInterceptor was dependent from our config files....

What is the new behavior?
Disconnect the config files dependency to Httpclient.
Use the HttpBackend handler to make calls. Then the http_interceptors do not intercept theses calls.
angular/angular#26845
https://stackoverflow.com/questions/46469349/how-to-make-an-angular-module-to-ignore-http-interceptor-added-in-a-core-module/49013534#49013534

I think this is a final solution to solve #1004
@cbourget, We will probably merge soon. But just to get you informed.

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

If this PR contains a breaking change, please describe the impact and migration path for existing applications:
Config files/Translations files and style-list service files are no more intercepted by AuthInterceptor due to the usage of HttpBackend handler

Other information:

@pelord pelord merged commit 6749002 into next Sep 15, 2023
4 checks passed
@pelord pelord deleted the get-config-files-before-app-initialize_2 branch September 15, 2023 17:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants