mirror of https://github.com/dapr/docs.git
[1.16] Adds not about new SA headers
Adds docs on Service Invocation app ID & namespace headers. Fixes https://github.com/dapr/docs/issues/4816 Signed-off-by: joshvanl <me@joshvanl.dev>
This commit is contained in:
parent
aa764cf8c7
commit
5459c96033
|
|
@ -134,6 +134,17 @@ In case you are invoking `mathService` on a different namespace, you can use the
|
||||||
|
|
||||||
In this URL, `testing` is the namespace that `mathService` is running in.
|
In this URL, `testing` is the namespace that `mathService` is running in.
|
||||||
|
|
||||||
|
### Headers in Service Invocation Requests
|
||||||
|
|
||||||
|
When Dapr invokes a service, it automatically adds the following headers to the request:
|
||||||
|
|
||||||
|
| Header | Description | Example |
|
||||||
|
|--------|-------------|---------|
|
||||||
|
| `dapr-app-id` | The ID of the calling application | `myapp` |
|
||||||
|
| `dapr-caller-namespace` | The namespace of the calling application | `production` |
|
||||||
|
|
||||||
|
These headers are available in both HTTP and gRPC service invocation requests.
|
||||||
|
|
||||||
#### Non-Dapr Endpoint Example
|
#### Non-Dapr Endpoint Example
|
||||||
|
|
||||||
If the `mathService` service was a non-Dapr application, then it could be invoked using service invocation via an `HTTPEndpoint`, as well as a Fully Qualified Domain Name (FQDN) URL.
|
If the `mathService` service was a non-Dapr application, then it could be invoked using service invocation via an `HTTPEndpoint`, as well as a Fully Qualified Domain Name (FQDN) URL.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue