From c9e171f3d2dbecaf3b896f543d9b745bd4a6b4cf Mon Sep 17 00:00:00 2001 From: Daniel Bulant Date: Mon, 16 Jan 2023 09:28:11 +0100 Subject: [PATCH] add trace headers to allowed headers --- src/routes/cors-anywhere/+server.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/cors-anywhere/+server.ts b/src/routes/cors-anywhere/+server.ts index 05b2bc7..e74af3c 100644 --- a/src/routes/cors-anywhere/+server.ts +++ b/src/routes/cors-anywhere/+server.ts @@ -8,7 +8,7 @@ export async function GET({ url }) { ...ret.headers, 'Access-Control-Allow-Origin': '*', 'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, HEAD, OPTIONS', - 'Access-Control-Allow-Headers': 'Content-Type, Accept, X-Requested-With, sentry-trace, baggage', + 'Access-Control-Allow-Headers': 'Content-Type, Accept, X-Requested-With, sentry-trace, baggage, traceparent, tracestate', 'Access-Control-Max-Age': '86400', 'Content-Type': ret.headers.get('Content-Type')!,