Open Closed

Angular App calling /getEnvConfig with __tenant Header #4420


User avatar
0
geegee created

The angular app is getting the environment configuration with the tenant header included, which is unneccessary.

How can we prevent the angular frontend from sending this header?

If you're creating a bug/problem report, please include followings:

  • ABP Framework version: v7.0.1
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): yes
  • Exception message and stack trace:
  • Steps to reproduce the issue:" Deploy front end to an nginx server.

3 Answer(s)
  • User Avatar
    0
    mahmut.gundogdu created

    It is a known issue related to Nginx. Here the solution.

    https://docs.abp.io/en/abp/latest/Multi-Tenancy#problems-with-the-nginx

  • User Avatar
    0
    geegee created

    I agree about the known issue.

    The issue though is that the angular app is sending out the '__tenant' header unnecessarily. '/getEnvConfig' doesn't seem to need the header to be sent out.

    Or is there a way to prevent that header from being unnecessarily sent out?

  • User Avatar
    0
    mahmut.gundogdu created

    I agree about the known issue.

    The issue though is that the angular app is sending out the '__tenant' header unnecessarily. '/getEnvConfig' doesn't seem to need the header to be sent out.

    Or is there a way to prevent that header from being unnecessarily sent out?

    Yes, we have implemented a solution. we have a two client, one is constain abp headers, another is doesn't. but this solution is not released yet. here the releted topic. There is a workaround in this answer. https://github.com/abpframework/abp/issues/15380

Made with ❤️ on ABP v9.1.0-preview. Updated on December 26, 2024, 06:07