W
W
web_dev2017-07-05 18:32:35
JavaScript
web_dev, 2017-07-05 18:32:35

Angular 2/4 overwriting headers in production?

Hello, tell me, otherwise I can not find information anywhere.
The problem is that Angular overwrites my headers when accessing the server. In the dev version, I set up a proxy, then the headers reach the server.
Made a productive version of ng build --prod --env=prod –aot – Angular overwrites headers.
I would be grateful for any information. What should I set up? Yes, the project is based on angular-cli.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
ozknemoy, 2017-07-08
@ozknemoy

how are headers declared? Angular has its own constructor ( new Header()) through it everything works fine

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question