Search code examples
angulartypescriptchromium-embedded

How to get a request header value on an Angular Component?


I have two applications, the first one is Angular and will receive a get request with a value in the header request. This request will be sent by the second application (a chromiumwebbrowser inside windows forms, to use the angular component built-in). My question is, how can I get the value of a header property when my angular components is started? I know I can pass the values using a query parameter, in the url and get it using the routes, but I'm trying to use the headers to avoid security issues and don't expose the value.

Header property i need to get in angular


Solution

  • After the MikeOne explanation, I thinked about this, so I solved using a query parameter in the url and getting it using the routes.