frontend support browser header (#2761)

This commit is contained in:
Shuchang Zheng
2025-06-21 08:50:19 +08:00
committed by GitHub
parent 592ed941ce
commit 1bf270df55
20 changed files with 495 additions and 0 deletions

View File

@@ -37,6 +37,10 @@ function WorkflowRunParameters() {
? (location.state.webhookCallbackUrl as string)
: null;
const extraHttpHeaders = location.state
? (location.state.extraHttpHeaders as Record<string, string>)
: null;
const initialValues = location.state?.data
? location.state.data
: workflowParameters?.reduce(
@@ -115,6 +119,8 @@ function WorkflowRunParameters() {
maxScreenshotScrollingTimes ??
workflow.max_screenshot_scrolling_times ??
null,
extraHttpHeaders:
extraHttpHeaders ?? workflow.extra_http_headers ?? null,
}}
/>
</div>