Closed vincenzo84 closed 8 months ago
In a PHP-Sandbox action that is called within a Util-Chain, how do I add a header that is available in all responses in the chain?
Thank you
Found it, just add this:
$requestContext = $request->getContext(); $httpRequest = $requestContext->getRequest(); $headers = $httpRequest->getHeaders(); $httpRequest->addHeader('key', 'value');
In a PHP-Sandbox action that is called within a Util-Chain, how do I add a header that is available in all responses in the chain?
Thank you