From 91a81a37d17dc665cf71b80fe1a1c8c52b5be4dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 2 Aug 2024 10:04:05 +0200 Subject: [PATCH 1/2] Fix suggested execution headers --- .../executions/execute-function/+page.svelte | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte index 00a456f62..29e773836 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte @@ -58,16 +58,20 @@ const deployment = data.activeDeployment as Models.Deployment; const keyList = [ - { label: 'Authorization', value: 'Authorization' }, - { label: 'Cache-Control', value: 'Cache-Control' }, - { label: 'Content-Length', value: 'Content-Length' }, + // Communication { label: 'Content-Type', value: 'Content-Type' }, + { label: 'Accept', value: 'Accept' }, + // Auth + { label: 'Authorization', value: 'Authorization' }, + { label: 'Cookie', value: 'Cookie' }, + // Optimizations + { label: 'Cache-control', value: 'Cache-control' }, + { label: 'Forwarded', value: 'Forwarded' }, + // Client-details { label: 'User-Agent', value: 'User-Agent' }, - { label: 'X-Appwrite-Project', value: 'X-Appwrite-Project' }, - { label: 'X-Appwrite-Key', value: 'X-Appwrite-Key' }, - { label: 'X-Appwrite-JWT', value: 'X-Appwrite-JWT' }, - { label: 'X-Appwrite-Response-Format', value: 'X-Appwrite-Response-Format' }, - { label: 'X-Fallback-Cookies', value: 'X-Fallback-Cookies' } + { label: 'Referer', value: 'Referer' }, + { label: 'Forwarded', value: 'Forwarded' }, + { label: 'Host', value: 'Host' } ]; const methodOptions = [ From 9b7dd42ba6b83e7833affe0cdc9730a451786656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Ba=C4=8Do?= Date: Fri, 2 Aug 2024 16:04:21 +0200 Subject: [PATCH 2/2] Add origin header suggestion --- .../executions/execute-function/+page.svelte | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte b/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte index 29e773836..29ad73c16 100644 --- a/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte +++ b/src/routes/(console)/project-[project]/functions/function-[function]/executions/execute-function/+page.svelte @@ -71,7 +71,8 @@ { label: 'User-Agent', value: 'User-Agent' }, { label: 'Referer', value: 'Referer' }, { label: 'Forwarded', value: 'Forwarded' }, - { label: 'Host', value: 'Host' } + { label: 'Host', value: 'Host' }, + { label: 'Origin', value: 'Origin' }, ]; const methodOptions = [