"additionalRequestHeaders"
This property sets additional HTTP request headers for requests sent by a WebView EWO.
Synopsis
shape.additionalRequestHeaders = makeDynString("Header-Name: value");
Parameters
| Parameter | Description |
|---|---|
additionalRequestHeaders |
List of HTTP header lines that are added to outgoing WebView requests. |
Details
Set this property in an EWO script before calling "load" or in event scripts like interceptRequest to adjust headers per request.
A common use case is forwarding a session token from an external OIDC login to the embedded web application, for example via an Authorization: Bearer ... header.
To remove custom headers, assign an empty list.
WebView_ewo1.additionalRequestHeaders =
makeDynString("Authorization: Bearer token123", "X-App-Id: MyApp");
WebView_ewo1.load("http://localhost:9991/index.html");
WebView_ewo1.additionalRequestHeaders = makeDynString();
