add trace headers to allowed headers

This commit is contained in:
Daniel Bulant 2023-01-16 09:28:11 +01:00
parent 9707229b2b
commit c9e171f3d2

View file

@ -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')!,