---
title: "Dealing with CORS Issues"
description: "Learn how to allow Sentry trace headers on requests from Godot Web exports to your backend."
url: https://docs.sentry.io/platforms/godot/tracing/distributed-tracing/dealing-with-cors-issues/
---

# Dealing with CORS Issues | Sentry for Godot Engine

If your Web game calls a backend on another origin, adding tracing headers can cause the browser to block the request unless the backend allows them. For example, a game at `https://game.example.com` calling `https://api.example.com` needs the backend's permission to make that cross-origin request.

## [Allow Trace Headers on Your Backend](https://docs.sentry.io/platforms/godot/tracing/distributed-tracing/dealing-with-cors-issues.md#allow-trace-headers-on-your-backend)

Configure your backend's CORS headers to allow `sentry-trace` and `baggage`:

```http
Access-Control-Allow-Headers: sentry-trace, baggage
```

The exact server configuration depends on your setup.

If you enable [`propagate_traceparent`](https://docs.sentry.io/platforms/godot/configuration/options.md#propagate_traceparent), also allow that header:

```http
Access-Control-Allow-Headers: sentry-trace, baggage, traceparent
```

## [Check the SDK Targets Too](https://docs.sentry.io/platforms/godot/tracing/distributed-tracing/dealing-with-cors-issues.md#check-the-sdk-targets-too)

If you've restricted [trace propagation targets](https://docs.sentry.io/platforms/godot/tracing/distributed-tracing/limiting-trace-propagation.md), make sure they include your backend URL so `get_trace_headers(url)` returns tracing headers for it.
