Open Closed

Angular App calling /getEnvConfig with __tenant Header #4420


0
[email protected] 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)
  • 0
    mahmut.gundogdu created
    Support Team

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

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

  • 0
    [email protected] 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?

  • 0
    mahmut.gundogdu created
    Support Team

    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