Skip to content

Commit

Permalink
CORS Allow headers for sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
thenav56 committed Aug 26, 2024
1 parent 3d45bdc commit f969ea9
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions main/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from pathlib import Path

import environ
from corsheaders.defaults import default_headers

from main import sentry

Expand Down Expand Up @@ -306,16 +307,14 @@
)

CORS_ALLOW_HEADERS = (
"accept",
*default_headers,
# Misc
"accept-encoding",
"authorization",
"content-type",
"dnt",
"origin",
"user-agent",
"x-csrftoken",
"x-requested-with",
# Sentry
"sentry-trace",
"baggage",
)

# Sentry Config
Expand Down

0 comments on commit f969ea9

Please sign in to comment.